Author Topic: Long tree node wrap issue in IE8/9 compatibility view  (Read 57446 times)

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Long tree node wrap issue in IE8/9 compatibility view
« on: May 10, 2012, 05:57:17 PM »
We have a problem where in one of our trees, a node with a long name wraps to the next line in the tree, which makes it unreadable.  I've attached a screenshot and also the generated html.  Look for "VeriSign Class 1 CA Individual Subscriber" to find the spot in the HTML.  This only happens in IE8/9 Compatibility View.  We are using AjaxSwing 3.1 built on May 26, 2011.

Dev Team

  • Customer
  • Hero Member
  • *
  • Posts: 593
    • View Profile
Re: Long tree node wrap issue in IE8/9 compatibility view
« Reply #1 on: May 11, 2012, 01:27:39 PM »
Thanks for generated HTML, we were not able to reproduce exactly same behavior, at most we were able to get text wrap to second line, but without an image.

Try adding this to the end of your /web_docs/css/custom.css:
Code: [Select]
.tree .tableTreeElementContent .tableCell {white-space: nowrap!important}

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: Long tree node wrap issue in IE8/9 compatibility view
« Reply #2 on: May 14, 2012, 02:08:24 PM »
The css addition didn't help.  We don't seem to have a problem with long text in our main tree, and just see the problem in our certificate tree.  I can have an extremely long folder name in the main tree and it doesn't wrap and the horizontal scroll bar always handles with plenty of white space to spare.  Is there something being rendered differently between a tree on the main frame and a tree in a dialog that would cause this?

Dev Team

  • Customer
  • Hero Member
  • *
  • Posts: 593
    • View Profile
Re: Long tree node wrap issue in IE8/9 compatibility view
« Reply #3 on: May 14, 2012, 02:37:02 PM »
It seems to be related to icon used for tree nodes, maybe making in several pixels smaller in height would resolve the issue.

Did you make any changes to custom there you're using for AjaxSwing? Can you send zip of latest custom.css and styles_common/styles_ie you're using to our support email address (support@creamtec.com)?

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: Long tree node wrap issue in IE8/9 compatibility view
« Reply #4 on: May 14, 2012, 02:46:55 PM »
Probably best thing is to have you upgrade to the latest version.  Just go to Tools>Software Update in UI.  I've made the latest patch available to all of your serial numbers, but you'll first need to upgrade to 4.4 if on lower version, and then come back to Tools>Software Update to upgrade to 4.4.26.

Dev Team

  • Customer
  • Hero Member
  • *
  • Posts: 593
    • View Profile
Re: Long tree node wrap issue in IE8/9 compatibility view
« Reply #5 on: May 16, 2012, 06:05:56 AM »
In compatibility mode IE doesn't handle wrap correctly, add following to your custom.css file:
Code: [Select]
.tableTreeElement {white-space:nowrap!important}
.tableTreeElement > img, .tableTreeElement > span {float:none!important;}