have windows properly initialized on mobile
This commit is contained in:
parent
2d3969d160
commit
78da77f710
10
script.js
10
script.js
|
|
@ -203,6 +203,16 @@ function removeDraggable(panel) {
|
|||
attachWorldSubTabLogic(clone);
|
||||
|
||||
wireUIEvents();
|
||||
|
||||
// If this is the controlPanel AND we are in mobile, minimize again
|
||||
if (isMobileLayout && clone.id === 'controlPanel') {
|
||||
const cContent = clone.querySelector('.content');
|
||||
const cMinBtn = clone.querySelector('.minimize');
|
||||
if (cContent && cMinBtn) {
|
||||
cContent.style.display = 'none';
|
||||
cMinBtn.textContent = '+';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function attachMinimizeLogic(panel) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue