Replacement for SM_ALIGMENT

Howdy,

do we have a replacement for SM_ALIGMENT, in particular in plugins.windows.createPopupMenu()?
I cant use the css-styleclass because my “header/title” menu has the same class as the “clickable” menus (.dropdown-menu)

Its just a tiny cosmetic thing but maybe some of you have a workaround for it.

Ty and have a nice day

-Vik

[attachment=0]svyPopUpMenu.png[/attachment]

vik.lamp.vl:
I cant use the css-styleclass because my “header/title” menu has the same class as the “clickable” menus (.dropdown-menu)

Hi Vik,

actually you can when adding the item in html, something like this:

addMenuItem('<span class="my-item-class">Item 1</span>')

Then you can create a style class like this:

.drowdown-item .my-item-class {
 color: red;
}

The above shows the item in red, but you can replace that with the alignment/padding you need.

Hope this helps

Hi Marc,

oh yeah thanks. That makes sense. I didnt even think about giving the menus a css style class.
I used and but wasnt thinking further :D

Thanks!