Announcement

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

    Are Browser scrollbars generated by SmartGWT considered a bug?

    Hi Isomorphic,

    I just got some browser (FF26) scrollbars for a SmartGWT-hover (containing much text) and remembered reading http://forums.smartclient.com/showth...ars#post116592.

    Are browser scrollbars generated by SmartGWT always considered a bug one should report?

    Best regards,
    Blama

    #2
    Hi Isomorphic,

    could you reply with a yes/no/depends?

    Because if it is (perhaps) a bug, I'll make a testcase.

    Best regards,
    Blama

    Comment


      #3
      Hi Isomorphic,

      the testcase was pretty simple to create. Just add this to the BuiltInDS-sample (v9.1p_2014-04-24, FF26 Dev Mode). For me, it generates browser scrollbars:
      Code:
      label
      				.setTooltip("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,");
      I think the overflow should be hidden here. Also, a method to set the width of the tooltip would be great.

      Best regards,
      Blama

      Comment


        #4
        No, browser scrollbars are not always considered a bug. In this case and in any other where the developer explicitly puts something off screen, browser scrollbars would be expected, and the framework does not attempt to prevent them.

        We do generally recommend not using browser scrolling, and using overflow:hidden on the <body> element to prevent it ever being accidentally triggered.

        The tooltip you're triggering here is a native one. We don't control the width.

        Comment

        Working...
        X