Announcement

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

    LinkItem not vertically aligned in showcase

    In SGWT 3.0 showcase [1], LinkItem text is not vertically aligned with item's label as shown in attached screenshot.
    This is the same behavior in IE9, Chrome 10 and Firefox 10.
    Is there a workaround for this?

    Thanks

    [1] http://www.smartclient.com/smartgwt/showcase/#form_controls_various
    Attached Files

    #2
    This issue is occurring because the default height of LinkItem is greater than the height of a line of text and the text aligns at the top of the item.

    There's an easy workaround - set the height of the LinkItem to null.
    We've made this change internally in the 3.1d branch so you should see the change in nightlies on that branch without having to explicitly workaround it.

    Comment


      #3
      Thanksfor the help but setHeight(null) causes an NPE in SGWT 3.0 release.

      I'll try in 3.0p or I'll wait for stable 3.1

      Comment


        #4
        I am having a similar problem after upgrading from 2.5 to 3.0. My LinkItem is RIGHT aligned against the right side of a form and it used to work fine. Now it shows only the first 3 characters and the rest is cut off.

        I tried setting the height to null and that fixed it in Chrome but throws an exception in Firefox.

        Comment

        Working...
        X