File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/essence/Basics/Globe_ Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,25 @@ let Globe_ = {
204204 $ ( `#${ this . id } ` ) . on ( 'mousemove' , ( ) => {
205205 coordinates . hideElevation ( )
206206 } )
207+
208+ // Because there might be separated tools, push all the control below them:
209+ // First find all left justified separated tools
210+ let numSep = 0
211+ L_ . configData . tools . forEach ( ( t ) => {
212+ if (
213+ t . separatedTool === true &&
214+ ( t . variables == null || t . variables . justification != 'right' )
215+ )
216+ numSep ++
217+ } )
218+ $ ( '#_lithosphere_controls_topleft' ) . attr (
219+ 'style' ,
220+ function ( index , currentStyles ) {
221+ return `${ currentStyles } top: ${
222+ 40 + numSep * 35
223+ } px !important; left: 7px;`
224+ }
225+ )
207226 } ,
208227 getMockLitho : function ( ) {
209228 return {
You can’t perform that action at this time.
0 commit comments