We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25285ca commit ed0543eCopy full SHA for ed0543e
1 file changed
src/essence/Basics/Globe_/Globe_.js
@@ -204,6 +204,25 @@ let Globe_ = {
204
$(`#${this.id}`).on('mousemove', () => {
205
coordinates.hideElevation()
206
})
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
226
},
227
getMockLitho: function () {
228
return {
0 commit comments