| |
What does it do?
If set to true (default), AutoPosition property tells TextMenu to position itself in the best way so that
it will not be displayed out of screen and cause scroll. This will permit menus to be shown on top or on left
of the parent items if screen will not allow them to display properly.
In this example, we're using tow vertical menus, both declared exactly the same way:
<tm:TextMenu runat="server" id="tm1"
Vertical="true">
</tm:TextMenu>
Take a look at how the left menu normally opens submenu to the right, while the menu on the right opens the
submenus to the left. This is because AutoPosition is true and this allows the menu to be positioned where
window space permits the best (to the left in our case). This is also true with vertical positioning.
To try it, make the page size smaller, so that the menu fits exactly. Then hover "Hardware" for example.
See that the submenu does not display to the bottom left of "Hardware", but rather to the top left of it.
This property allows you to position the menu anywhere on the page without worrying that it might cause the
page to scroll or would require scrolling to get to the submenus. It is all done automatically by TextMenu.
If by any chance you need to deactivate this feature, simply set AutoPosition="false" in the menu declaration.
| | |
| "After evaluating around 10 html editors I found yours and made a quick decision that it is simply the best one I have found." |
Shawn Richards |
| InterThingy Technologies |
| | |
|
|
|
|