Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can I control side navigation menu auto-collapse

Liam DApr 22 2020 — edited Apr 23 2020

I'm upgrading an application from 5 on 12c to 19.2 on 18c.

Using a side navigation menu with a collapse mode of icon, and not collapsed by default.

When the sidebar is open, I noticed that sometimes a page refresh (either f5 or click to open another page) opens the page with the sidebar still open, and sometimes it closes the sidebar down.

After a bit of trial and error, I've found that it depends on the width of the window - below about 994 pixels the side menu auto-collapses whenever it is drawn.

Given that most of our users have 1920x1080 monitors, if they run the application in half screen, that is 960 pixels, so the menu bar collapses repeatedly.

Does anyone know if there's any way of controlling (i,e stopping) this behaviour?

My initial thoughts are either to be able to explicitly set the window width at which this behaviour occurs, or to be able to track whether the menu has been expanded, and make a call to force the expansion if necessary (it doesn't look like aria-expanded can be used as this becomes set to false as the window is narrowed).

To see the behaviour in action, just go to https://apex.oracle.com/pls/apex/apex_pm/r/ut/getting-started , open the navigation side bar and then watch it appear and disappear as you change the width of the window.

Comments
Post Details
Added on Apr 22 2020
1 comment
999 views