Announcement

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

    Wrong size of Hover component

    Hi all,
    I reproduce this problem on your feature explorer with version "v12.0p_2019-01-15/AllModules Development Only". With browser IE 11 and Edge.
    For example this code:
    Code:
    isc.Button.create({
        autoFit: true,
        title: "CSS Button",
        icon: "icons/16/icon_add_files.png",
    prompt: "Create scenario",
    hoverAutoFitMaxWidth : 300
    
    });
    then the result look like this, text is on two lines but it could be on one line. Because max width 300px is enough
    Click image for larger version

Name:	wrong_hover_size.png
Views:	79
Size:	6.8 KB
ID:	256518


    And it happen only for some Density, in this case I used Expanded.

    I also found why it happen. Because for some reason you are clear baseStyle before Hover measure content size:
    Hover.js
    Click image for larger version

Name:	hover_js.png
Views:	38
Size:	4.4 KB
ID:	256519

    Then you are using different CSS class for measureContent and in real showing of hover. And these different CSS classes cause wrong measurement.

    Thank you for your answer.

    Jirka

    #2
    Any idea why it is like that? :-)

    Comment


      #3
      This was actually fixed on Januarty 28, but we neglected to post an update here.

      The baseStyle being cleared in this case is correct because the contentString already contains the baseStyle.

      You can retest with a build dated January 29 or later.

      Comment

      Working...
      X