Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNNMenu and "white-space: nowrap;"DNNMenu and "white-space: nowrap;"
Previous
 
Next
New Post
10/15/2008 9:06 PM
 

In my work of converting the DNN gallery module's use of the old SolpartMenu to the DNNMenu I have run into a problem preventing menu node text from wrapping. In both the main level gallery menu and in each gallery thumbnail (a custom webserver control inheriting from DNNMenu) we are manually populating MenuNodes in code rather than from xml.

In IE 7 and 8 beta with WebControls 1.5.3 running under DNN 4.8.4 and 4.9, the addition of "white-space: nowrap" to the css rule applied to DefaultNodeCSSClass, DefaultChildNodeCSSClass and DefaultNodeCSSClassOver of the DNNMenu object (as well as to CSSClass and CSSClassOver of individual menu nodes) appears to be ignored. It is, however, properly observed in Firefox and Opera.

I finally had to wrap the text of each node with a <span> tag having an in-line style of "white-space:nowrap;" to prevent wrapping in IE. This worked fine with WebControls 1.53. in DNN 4.8.4 and 4.9.

However, when tested against DNN 5 RC 1 with WebControls 2.0, the addition of the <span> tags around node text caused only a postback but no redirection to the NavigateUrl of a node when the node was clicked followed by a visible display of the added <span> tag following the postback. When I removed the added <span> around the node text, all worked fine in DNN 5 RC 1 with the added benefit that the "white-space: nowrap;" in the CSS rule now worked in both IE and Firefox.

Can Jon or someone confirm that this was indeed a change in WebControls 2.0 and suggest any other way to prevent word wrapping of node text in IE with WebControls 1.5.3?


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
10/16/2008 9:11 AM
 

It doesn't surprise me that a hack to the old menu no longer works with the new dnnmenu, as I refactored a lot of logic to clean up the legacy code there.  As to whether we can get the webcontrols 1.5.3 to listen without the introduction of html to the element, I am not sure, but can try.  Please send me a sample to work with, either a url to view or if this is not possible, do a File -> Save As.  Make sure webpage complete is chosen for type, and save the contents.  Zip the directory and subdirectory up and email me.


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNNMenu and "white-space: nowrap;"DNNMenu and "white-space: nowrap;"


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out