Forum Discussion
o0netquik0o
6 years agoRising Ace
Ok verifying the problem i saw that was not totally caused by overlay reposition up.. but when a scripts add a button in MenuBar causes misalign on X.. the bar is not centered. So considering alignX doesn'work to fix the problem. i fix adding this code.
so if a button (like SCAN of Mail Basescanner) is added a margin is added to the menu bar
this center the vie and also remove the problem.
For now the only scipt that adds a button is Mail Scanner..
This fix can be left also after we can revert to overlay native position if they fix that in next update.
// Fix a problem if new button is added in Menu Bar that cause misalign on center
this.MenuBar = qx.core.Init.getApplication().getMenuBar();
this.MenuBarButtons = this.MenuBar.getChildren().getChildren().length;
if(this.MenuBarButtons > 10 ) {
this.MenuBar.setMarginLeft(-(this.MenuBarButtons-10)*(50));
}
so if a button (like SCAN of Mail Basescanner) is added a margin is added to the menu bar
this center the vie and also remove the problem.
For now the only scipt that adds a button is Mail Scanner..
This fix can be left also after we can revert to overlay native position if they fix that in next update.