Announcement

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

    Misc question about DateChooser (inside Calendar)

    Smart GWT 4.0p (built 2013-08-19)

    Going to the next day with the DateChooser (left) next day button, the position of that is changing based on the length of the formatted date (includes name of the day)

    For the easiest understanding I have attached a screen shot demonstrates user may need to move the mouse to click then next button again (and of course accidentally he/she will click the new event button instead of the next)

    So, the question is there a solution to fix the position that button?
    (defining a fix width for the formatted date text is fine, also moving the next button right after the prev button - but looking for your advice)

    Thank you.
    Attached Files

    #2
    We don't currently have a way to customize this date display label as you suggest.
    We understand the effect you're showing in this screenshot where the title length changes as the selected day changes, but we're unclear on why this is a problem in your app?

    Comment


      #3
      Searching for the appropriate day, you will click the next day again and again. The report came from the users they need to re-move the mouse pointer instead just concentrating to the content of the grid from day to day.

      ( Other idea could be if possible to assign mouse wheel or keyboard shortcuts for prev/next buttons )

      Comment


        #4
        Well you could supply your own UI for stepping forward and back through the calendar.
        You can also suppress the default controls bar via setShowControlsBar(false);

        Comment


          #5
          Actually it would be too big change for that misc issue. So, we are going to keep the existing controls, maybe adding some spaces to the formatted date - not an elegant one but it may help a little.

          Comment


            #6
            We've exposed the Calendar.dateLabel autoChild, as of builds dated August 27 and later - you can get the behaviour you're after with some code like this:

            Code:
            final Calendar myCalendar = new Calendar();
            final Label labelProperties = new Label();
            labelProperties.setWidth(100);
            labelProperties.setOverflow("hidden");
            myCalendar.setAutoChildProperties("dateLabel", labelProperties);

            Comment


              #7
              This is very simple, but it does work great! Thank you.

              Comment

              Working...
              X