rbac and licenses
This commit is contained in:
@@ -18,7 +18,7 @@ const ctx = new ContextMenu();
|
||||
const windowCleanup = new Map();
|
||||
const username = getCookie('sAMAccountName');
|
||||
const LS_KEY = (key) => `${username}:${key}`;
|
||||
const MAX_PADDING = { left: 4, top: 4, right: 4, bottom: (56 - 4) };
|
||||
let MAX_PADDING = { left: 4, top: 4, right: 4, bottom: 40 };
|
||||
|
||||
startBtn.addEventListener('click', (evt) => {
|
||||
evt.stopPropagation(); // verhindert sofortiges Schließen
|
||||
@@ -28,13 +28,19 @@ startBtn.addEventListener('click', (evt) => {
|
||||
|
||||
function updateStartMenuPosition() {
|
||||
const height = taskbar.offsetHeight;
|
||||
startMenu.style.bottom = (height + 5) + 'px';
|
||||
startMenu.style.bottom = (height + 12) + 'px';
|
||||
}
|
||||
|
||||
const observer = new ResizeObserver(entries => {
|
||||
for (let entry of entries) {
|
||||
const height = entry.contentRect.height;
|
||||
document.documentElement.style.setProperty('--auto-taskbar-height', height + 'px');
|
||||
MAX_PADDING = { left: 4, top: 4, right: 4, bottom: height + 8 };
|
||||
|
||||
windowsContainer.querySelectorAll('[data-winid]').forEach(win => {
|
||||
if(win.dataset.state === 'maximized') {
|
||||
applyMaximized(win) ;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user