Announcement

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

    Do checkboxes now have a fixed width when the width is not specified?

    1. SmartClient Version: v9.1p_2014-07-23/Pro Deployment (built 2014-07-23)
    2. IE 9, 10, 11 - Chrome 36.0.1985.125 m - Firefox 30.0

    In my app, the width of the Checkbox was never specified and to date the behaviour of SmartClient was to adjust the size of the checkbox to fit the title length.

    Since v9.1p_2014-07-23/Pro Deployment (built 2014-07-23), the checkboxes with no width defined all seem to have some predetermined width leading to extra blank space for short titles.

    Do checkboxes now have a fixed width when the width is not specified?

    #2
    We're not sure from your description what may have changed. (Are you talking about checkboxes in DynamicForms, in ListGrids, somewhere else?)

    Can you show us a snippet of sample code we can run (perhaps something we can drop into the feature explorer) which demonstrates the problem - something which sized differently prior to the July 23rd build - so we know what we're looking for?

    Thanks
    Isomorphic Software

    Comment


      #3
      Sample code

      Simplest case I could find. Tested it at the following link
      https://smartclient.com/#checkboxSelect

      Code:
       
      isc.DynamicForm.create({
          numCols : 4,
          fields: [
              {title:"CK1", type: 'CheckboxItem'},
              {title:"Ck2", type: 'CheckboxItem'}
          ]
      });
      Notice how far the checkboxes are from one another. The same code in previous version kept the checkboxes much closer together. Check the pics CLOSE.PNG and FAR.PNG.
      Attached Files
      Last edited by Vivek_Gungabissoon; 24 Jul 2014, 11:05. Reason: GRAMMAR + TYPO

      Comment


        #4
        We're not sure where the "Close" screenshot is from (possibly from a page using an invalid DOCTYPE or additional CSS), but the "Far" rendering is what would be expected with those settings.

        See the Form Layout overview for more information on how to control form rendering.

        Comment


          #5
          Context of the screenshots taken

          The screenshots come from the feature explorer of version
          SmartClient Version: v9.0p_2013-12-03/Pro Development Only (built 2013-12-03)

          CLOSE_CONTEXT.JPG shows that this example is running in the feature explorer of version v9.0p_2013-12-03/Pro Development Only (built 2013-12-03)

          DEVELOPER_CONSOLE.JPG gives the SmartClient version.

          Plug in the code in an older version of the feature explorer of SmartClient Pro and the checkboxes will be closer together. The latest build though puts extra space between the checkboxes. Something has changed.

          Code:
          isc.DynamicForm.create({
              numCols : 4,
              fields: [
                  {title:"CK1", type: 'CheckboxItem'},
                  {title:"Ck2", type: 'CheckboxItem'}
              ]
          });
          Attached Files
          Last edited by Vivek_Gungabissoon; 24 Jul 2014, 12:30. Reason: Code added

          Comment


            #6
            Support for more recent browsers would be one thing that's changed, since you seem to be testing with at least some browsers that were released long after 9.0.

            But regardless, the behavior you see now is the expected behavior, and if you like the old rendering, again you should read the Form Layout overview for how to specify that that's what you want.

            Comment


              #7
              Issue resolved

              "the behavior you see now is the expected behavior"

              I would have preferred the old behavior but I'm fine with this resolution as you confirm that this is not a bug introduced in the nightly.

              Comment

              Working...
              X