Announcement

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

    Error when changing HourItem's titleOrientation in DateChooser

    SmartClient Version: v9.1p_2015-09-16/Pro Development Only (built 2015-09-16)
    Browser Chrome: Version 47.0.2526.111 m

    We would like to edit the DateChooser to have the TimeItem items display horizontally. The items consist of the hour item and minute item. Currently the hour title and minute title are above their respective combo box. The desired outcome would be to have them displayed side-by-side. When attempting to change the hourItem's titleOrientation property to "left", the following error pops up:

    Error evaluating your changes:
    ErrorType: TypeError
    ErrorMessage: this.getTitleVAlign is not a function
    I suspect it should be using getTitleAlign if left-oriented, instead of getTitleVAlign? Would this be considered a bug?

    Code:
    isc.DateChooser.create({
        showTimeItem: true,
        timeItemProperties:{hourItemProperties:{titleOrientation:"left"}},
    });
    Last edited by shresthg_des; 25th Jan 2016, 10:15.

    #2
    This is not currently a supported layout for these controls. The problem is that your setting of titleOrientation means a column in the internal form layout will be required for the title, and the control assumes there is no such column.

    Comment


      #3
      Do you know if this will be supported in a later version of SmartClient?

      I am not sure if I understand why it is unsupported. Is there something different in the form in DateChooser compared to a SelectItem in a form? There are examples of those horizontally aligned (https://www.smartclient.com/docs/9.1...tml#selectItem). If possible, may you suggest an alternative solution to achieve similar result?

      Comment


        #4
        Again, the sizing code here makes an assumption that there is no column dedicated to the title, both within this form and for the layout of the DateChooser as a whole. We're not sure why you're interested in this change in title orientation, as it's just less compact and seems altogether worse - that's why we didn't try to support it initially and have no current plans to add support for it.

        If you for some reason *really* think it's a lot better, the Feature Sponsorship program would be a way to get it done.

        Comment

        Working...
        X