Page 1 of 1

Selected menu is not highlighted - Horizontal menu style

Posted: 07 Sep 2017, 07:42
by koushik_m100
Hi,
We have a licensed Ultima theme which we use for various development. But recently we noticed that if we use Horizontal menu, that time selected menu is not highlighted. All menu types the selected menu is getting highlighted. Please give some insight on this.

Koushik

Re: Selected menu is not highlighted - Horizontal menu style

Posted: 19 Sep 2017, 09:24
by aragorn
Horizontal menu doesn't support stateful feature. For this issue, you need to make the following change in layout.js;

Code: Select all

init: function(cfg) {
   ...
   if(!this.wrapper.hasClass('layout-menu-slim')) { /* remove !this.wrapper.hasClass('menu-layout-horizontal') && */
            this.restoreMenuState();
   }
   ...
},

Re: Selected menu is not highlighted - Horizontal menu style

Posted: 19 Sep 2017, 10:43
by koushik_m100
Thanks

Re: Selected menu is not highlighted - Horizontal menu style

Posted: 19 Sep 2017, 11:41
by aragorn
You're welcome!

Re: Selected menu is not highlighted - Horizontal menu style

Posted: 14 Nov 2017, 14:51
by Hamsterbau
Hi,

can it be, that the workaround is not valid for Ultima version 1.1?
If i use this code change in layout.js, the behaviour of the horizontal menu is broken:
  • Too much entries will get highlighted
  • By clicking on a submenu, the whole submenu stays open
Although there were functions defined (f. e. isHorziontal() ), these functions will not be used everywhere like the init method.

Wbr,

Daniel

Re: Selected menu is not highlighted - Horizontal menu style

Posted: 01 Dec 2017, 12:43
by cagatay.civici
Yes, not supported in 1.1, we're considering to add built-in support.