-
14 Jan 2012 1:53 AM #1
selectfield , textfield display incorrect
selectfield , textfield display incorrect
Sencha Touch version tested:
- 1.1.0
Platform tested against:- iPhone
- iPad
- SamsungI9100
Description:- field of selectfield , textfield display incorrect when label too long.
Bottom backgroup color has color of style .x-form .x-panel-body ( default is #eee )
label long.png
-
15 Jan 2012 2:12 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Please don't mark your own bug report as open. You can correct this via simple CSS.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
16 Jan 2012 2:24 AM #3
Ok mitchell.
Can you show me that css ?
Thanks a lot!
-
19 Jan 2012 4:53 AM #4
Sorry for possible duplicate, but I think this might help the topicstarter. I've posted the same reply in the similar topic.
Here's the fix that worked in my case, that I've posted on stackoverflowYou're a true obsessive programmer, if your answers to the questions are totally correct and totally useless at the same time.
-
1 Feb 2012 5:51 PM #5
Hi Wall Tearer
Thanks you. Your solution is the best in options.
- In css file
.x-form-label span {
word-wrap: break-word; /*to avoid words that exceed length of the label*/
}
.x-input {
/*
the fix was working even without this,
but I'm leaving it here for more stability
*/
position: relative;
}
.x-input input {
/*basically, the main 4 magic lines of the fix*/
position: absolute;
height:100%;
width: 70%;
right: 0;
/*for more reliability*/
top: 0;
bottom: 0;
}
- Assign 'x-input' class to the element in Sencha app
{
xtype : 'datepickerfield',
name : 'removeDateEdit',
id : 'removeDateEdit',
label : 'Remove Date:',
picker : {
yearFrom : 1981,
yearTo : 2015
},
value : removeDate,
cls: 'x-input',
labelWidth:'40%'
}
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote