-
24 Dec 2012 4:22 AM #1
[4.2b] Checkbox should ignore inputWidth
[4.2b] Checkbox should ignore inputWidth
REQUIRED INFORMATION
Ext version tested:- Ext 4.2 beta
- Chrome
- IE9
- <!DOCTYPE html>
- Probably, a Checkbox should ignore the inputWidth setting. I set up the inputWidth setting via FormPanel's fieldDefaults and a Checkbox is not rendered well. Please look at the screenshot.
- Generally, I understand what happens and a workaround is easy - setting "inputWidth: 13" for a Checkbox. Just report to you. Maybe, you would like to fix it.
- Just run the sample
- A common checkbox
- There is a group of four different checkboxes.
HELPFUL INFORMATIONCode:<!DOCTYPE html> <html> <head> <title>Checkbox inputWidth</title> <link rel="stylesheet" href="../resources/css/ext-all.css" /> <script src="../ext-all-debug.js"></script> <script> Ext.onReady(function () { Ext.create("Ext.form.Panel", { renderTo: Ext.getBody(), fieldDefaults: { inputWidth: 90 }, items: [{ xtype: "checkbox" }, { xtype: "textfield" }] }); }); </script> </head> <body> </body> </html>
Screenshot:
1.JPG
-
26 Dec 2012 8:19 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Thanks for the report! I have opened a bug in our bug tracker.
I do think that the developer should also make sure not to use it also. LIke this using your code
Code:Ext.create("Ext.form.Panel", { renderTo : Ext.getBody(), fieldDefaults : { inputWidth : 90 }, items : [ { xtype : "checkbox", inputWidth : false }, { xtype : "textfield" } ] });
You found a bug! We've classified it as
EXTJSIV-8112
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote