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

  • DateChooser styling issues

    SmartGWT version: v6.0p_2017-02-23/PowerEdition
    Browser: Chrome: 58.0.3029.110 (64-bit)

    We modified the DateChooser's styling, but it is not possible to modify the width of the yearChooserButton and the monthChooserButton.
    Especially if we switch to Chinese we have the problem that the dialog doesn't show the month. What are we doing wrong?

    In attachment you can find a screenshot, the modified css and the modification in the skin_styles.js.
    Attached Files

  • #2
    It looks like your .js file just tries to set various buttons to 100% width. The result of doing this depends on what else is in the layout with the buttons and how the layout is sized. Instead, just set the pixel width that you want.


    • #3
      Thanks for the quick reply.

      I tried this, but it did not help. It seems that these two buttons (monthChooserButton, yearChooserButton) can not be changed. For the the other buttons (previousYearButton, previousMonthButton,) nextMonthButton, nextYearButton) I can set the width without problems. See attached files.
      Attached Files


      • #4
        We've made a change to address this issue - all settings, including width, passed via year/monthChooserButtonProperties will now be correctly applied - please retest with a build dated May 25 or later.


        • #5
          I tried it again with the built from 2017-06-01 and with the built from 2017-06-04 but it doesn't solve the problem.
          The settings will not be correctly applied.

          Version from the developer console: SmartClient Version: v11.0p_2017-06-01/PowerEdition Deployment (built 2017-06-01)
          Attached Files


          • #6
            As we noted: "all settings, including width, passed via year/monthChooserButtonProperties will now be correctly applied" - your code is affecting the *Defaults blocks, not the *Properties blocks.

            We've made a change to make this work for *Default blocks as well, so it can be affected in skins - you can test the fix in tomorrow's build.

            In the meantime, you can just apply your width settings to year/monthChooserButton*Properties* instead.


            • #7
              With the built from 2017-06-07 it works. Thank you!