Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15938

StyleEditor: Dropdown for specifying unit (px, % etc) for Box->height doesn't work

    XMLWordPrintable

Details

    Description

      When making Box->height and Box->width properties you have to write the unit (pixels, % etc) in the input field. The drop-down for selecting unit which is presented to the user seems to be ignored. This bug may apply to other properties as well

      Steps to reproduce
      Setup
         1. Log in as admin in ezwebin
         2. Create an article named "Article test"
         3. View this article
         4. Click "CSS" button in toolbar
      
      Test width
         1. Select "H1" from the "Elements" menu
         2. Select Box -> width in drop down
         3. Click "Add" button
         4. Write "50" in the width input field
            Bug : you have to type "50px" instead
         5. Click "Apply" button
         6. Validate that that the header "Test article" is now written on two lines
         7. Click "Save" button
         8. Validate that the header "Test article" is now written on two lines. 
      
      Test height
      
         1. Select "H1" from the "Elements" menu
         2. Select Box -> height in drop down
         3. Click "Add" button
         4. Write "100" in the width input field
            Bug : you have to write "100px" instead
         5. Click "Apply" button
         6. Validate that quite a large area of space is created between the header "Test article" and the author ("Administrator user)
         7. Select "%" instead of "pixels" in the height drop down box
            Bug : won't work. You have to type "100%" in the text field instead
         8. Validate that the area of space created in step 5 is removed again.
         9. Click "Save" button
      
      Test margin-left
      
         1. Select "H1" from the "Elements" menu
         2. Select Box -> margin-left in drop down
         3. Click "Add" button
         4. Write "50" in the margin-left input field
         5. Click "Apply" button
         6. Validate that that the header "Test article" is moved 50 pixels to the right
         7. Select "%" instead of pixels
         8. Validate that that the header "Test article" is moved further to the right ( text should start in the middle of the column )
         9. Click "Save" button
      

      Attachments

        Activity

          People

            ls ls
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: