Using percentages to set sizes
Having a problem. Can't seem to use percentages to set sizes. For example, I can't seem to set a textField's width as 100%. How would I do this?
View ArticlePossible bug? button.width = percentage
Helo there, In may App i do some layout when the orientation changes, pretty simple stuff: myButton.width = '45%'; // works fine myButton.width = '44%'; // crashes iPhoneSim (hard crash, terminates...
View Articlepercentage width still doesn't work
Hi ! I am working with 1.6.1 for Android. I have a button which width is set to 90%. It is not displayed when the tab is first displayed. If I rotate the screen, the width is 90% but for portrait mode....
View ArticleSetting UI Dimensions Based on Parent Window Percentage *and* Pixel length
I want to set the height of a window to (86% - 50px) of its parent element. I really hope there is a way to do this but haven't been able to figure it out yet. Help appreciated, Nick
View Articlebugreport: view.center.y with percentage broken?
it seems that the y property is broken when using percentages. it seems its using always the width property instead of height to calculate the position. i have two views 'red'{ width: 100, height: 100,...
View ArticleSetting height with percentage on tableviewrow does not work for android
Hi, I'm trying to create a unified setup for a view containing a table for both iphone and android. Therefore I'm using percentages for setting the top, left, width and height properties. Unfortunately...
View ArticleUsing % to Expand View is from left to right always
I am using % to expand the view size. say I m using left : '25%' and on some click eevent I am changing left : '50%'. The thing, I noticed that the expansion of views from left to right or top to...
View ArticleSetting views width/height with percentage is not working.
Based on this tutorial I should be able to set width/height of my views with string 'value%' var instance = Ti.UI.createView({ top : 0, height : e.height, width : '100%', backgroundColor : 'blue',...
View ArticleLayout Horizontal and slider issues
Hello there, I have the following code which doesn't seem to work. var sliderBox = Titanium.UI.createView({ width:"95%", height:300, backgroundColor:"#FFFFFF", layout:"horizontal", top:10 }) var...
View ArticleAnimate with percentage values
I'm trying to move a view 100% to the left, however when I use a percentage it seems to only move it 100 pixels instead. For examplevar slideNext = Titanium.UI.createAnimation({ left: '-100%', duration...
View ArticleTransforming pixel in percentage
Hi, I get a json file properties of a button (width, height, top and left), all these information are in pixel. Somehow I have to turn this pixel in percentage? Application type: mobile Titanium SDK:...
View ArticleImageView percentual scaling not correct
Dear readers, When I create an ImageView and set the width to 100% it will not stretch the image to the full width of the parent window. When I exit and "restart" the application on my Android phone it...
View ArticleNeed help in Font size increament with screen resolution
Hi, I am working in Titanium mobile 1.7.2 SDK, android 2.3.3 environment. I've used the percentages for aligning the controls in screen resolution issue. the controls are now working efficiently though...
View ArticleAndroid Round Corners with percentage
I'm having a problem with this on android. If you use a value in percentage for borderRadius in iOS everything is correct. Pass that to android and the property is ignored. Is this a bug? Titanium...
View ArticlePercentage(%) for the all the UIs not working well in Nexus 4 Device
Hi, I am using percentage(%) for all the UIs in my project. It is working well with all the devices but for the nexus 4 device, the UIs are showing very smaller. I dont know how to resolve it?
View ArticleFixed with next to a fluid view
Say we have the following syntax: <View id="main"> <View id="sub1"> <TextField id="tf" /> </View> <View id="sub2"> </View> </View> main is 100% wide and has a...
View ArticleWhy using percentages is bad idea?
My question is why using percentages is bad idea, I've done my own methods which convert percentage to dp considering dpi and platform width and height, but it gave me same result of percentage , even...
View ArticleFont size based on parent view
I want to show font based on parent view. I have set percentage to font and it worked well with high resolution devices when I tested font in low resolution devices the font is appearing very big....
View Article
More Pages to Explore .....