Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    [bug?] min/max Height specified as string in layout

    SmartClient 8.0
    Firefox 4 and Chrome

    /SmartClient_Explorer.html#layoutNesting

    I've modified the Label "Listing" as
    height: 100, minHeight: "100", maxHeight: "100",

    this is a "trick" I use to make non-resizable, but collapsable, the layout.

    If I use min and max heights expressed as integers, no problem.

    but if expressed as strings, if I try to drag (instead of clicking) the resizeBar, it disappears.

    I faced this problem because if I add minHeight and maxHeight in a xml ui layout, <isomorphic:XML> tags translates their values as strings in javascript.

    as a workaround, I could enclose the values in a <JS> tag:
    <minHeight><JS>100</JS></minHeight>

    but unfortunately the visualbuilder strips out the <JS> tag
    Last edited by claudiobosticco; 7 Jun 2011, 04:47.

    #2
    There was a regression that could cause this problem translating XML to JS, but it was fixed ~2 weeks ago. If you think it's still happening, first make sure you're really running the first you mentioned, then show a test case.

    Comment


      #3
      Sorry, I was thinking of "bug" as the strange behaviour (which I tested also with the snapshot) when min/maxHeight are strings, but I see that actually they *must* be numbers.

      instead, the real bug is in the xml->js translations, which I tested only with 8.0, and which you already fixed.

      I'll correct the original post.

      BTW, any release date for 8.1?

      thank you very much.

      Comment

      Working...
      X