-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everyone!!
I have a display problem with the menuitem. I'm trying to make the width of menuitem the same width size as that menu. it's possible?
Hi There,
Do you mean you want the menupopup to be the same width as the parent menu component?
The easy but meh way to do that would be to hardcode the width you want on menu and menupopup. But that's somewhat annoying, since you can't use dynamic size in this case.
More complicated, but more extensible: You can use a client-side listener to do something during "bind_" (the time when components are added to the page). You can check the width of the menu object and use that as value for menupopup's width.
Asked: 2020-02-14 16:17:20 +0800
Seen: 8 times
Last updated: Feb 17 '20