diff options
author | ChrisGlad <chris.gladman2004@gmail.com> | 2022-08-08 09:55:23 +0100 |
---|---|---|
committer | pedropintosilva <65948705+pedropintosilva@users.noreply.github.com> | 2022-08-08 15:52:22 +0200 |
commit | 6706dd457dd8f41abbc10b28c3acdb70b761a43f (patch) | |
tree | 959af9875e7e76a0234b1a342da08abcc49cd52a | |
parent | Writer: sidebar (table) fix row height spinner's position (diff) | |
download | online-6706dd457dd8f41abbc10b28c3acdb70b761a43f.tar.gz online-6706dd457dd8f41abbc10b28c3acdb70b761a43f.zip |
Fix UI Selection bug
cp-21.11.6-1
Signed-off-by: ChrisGlad <chris.gladman2004@gmail.com>
This code fixes the problem that elements in the Notebookbar will
not be correctly displayed as "selected" after changing the UI
mode.
Change-Id: I4f889f8593029c375a06e17dbf1062bb9b9f5efc
-rw-r--r-- | browser/src/control/Control.UIManager.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/browser/src/control/Control.UIManager.js b/browser/src/control/Control.UIManager.js index bdd7f908d6..b19acd9440 100644 --- a/browser/src/control/Control.UIManager.js +++ b/browser/src/control/Control.UIManager.js @@ -337,6 +337,11 @@ L.Control.UIManager = L.Control.extend({ this.setSavedState('CompactMode', uiMode.mode === 'classic'); this.initializeSidebar(); this.insertCustomButtons(); + + // this code ensures that elements in the notebookbar have their "selected" status + // displayed correctly + this.map.fire('rulerchanged'); + this.map.fire('statusbarchanged'); }, // UI modification |