Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1176] Percentage widths and heights don't work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-18T23:10:27.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M04
ComponentsAndroid
Labelsandroid, defect, enterprise, release-1.6.0, rplist
ReporterPaul Dowsett
AssigneeDon Thorp
Created2011-04-15T02:45:50.000+0000
Updated2011-04-18T23:10:27.000+0000

Description

On the off chance that a fix for this can be included in the 1.4 release, and as it's sucha blocker for me, I raise it here.

http://developer.appcelerator.com/question/36791/percentage-width-and-height-dont-work"> http://developer.appcelerator.com/question/36791/percentage-width-a...

Comments

  1. Stephen Tramer 2011-04-15

    Please include an example. 1.4 drops shortly so it is doubtful that this will be fixed before then, but unless something is deemed more critical I will try and get it done before release.

  2. Stephen Tramer 2011-04-15

    This isn't an iPhone bug. Our automatic assumptions that bugs without additional information are for iPhone is kind of goofy; checking the developer center showed that this is actually an android issue.

  3. Don Thorp 2011-04-15

    Thanks for seeing it.

  4. hal 2011-04-15

    Do you need me to provide an example? Even the simplest code will demonstrate that any percentages do not work for android currently (eg, create a text field with width of 75% and add it to the window).

  5. Don Thorp 2011-04-15

    Enable dimension support.

  6. me (at alexstone) 2011-04-15

    How is this prioritized as low? It's a huge issue if you're trying to make an Android app, as it's the only way to handle making a UI, since the screen sizes will NEVER be consistent.

  7. Don Thorp 2011-04-15

    I have not gone through this list and prioritized any of the things in it. Including this ticket. I have not decided what low, medium, or high mean in our work queue yet either. Consider this a big bag of stuff that will get worked on at some point.

    It is also possible to work around the issue in your app using the displayCaps API if you need it before we get it implemented.

  8. Marshall Culpepper 2011-04-15

    (from [9b1ab0b84ad351335693f5976076c28e585c5799]) added a smoketest for new android layout dimensions and center [#1176 state:fixed-in-qa] [#1125 state:fixed-in-qa]
    https://github.com/appcelerator/titanium_mobile/commit/9b1ab0b84ad351335693f5976076c28e585c5799"> https://github.com/appcelerator/titanium_mobile/commit/9b1ab0b84ad3...

  9. Marshall Culpepper 2011-04-15

    (from [933e9ee650d43338af87d65ddca943bde4cde3cc]) initial android impl of dimensions and "center". [#1125] [#1176] https://github.com/appcelerator/titanium_mobile/commit/933e9ee650d43338af87d65ddca943bde4cde3cc"> https://github.com/appcelerator/titanium_mobile/commit/933e9ee650d4...

  10. Don Thorp 2011-04-15

    (from [8e8d130a15285a2af030f19e888ddae4e84a81ff]) [#1176 state:fixed-in-qa] updated to remove comment that left, right, top, bottom, height, width as percentage was iOS only https://github.com/appcelerator/titanium_mobile/commit/8e8d130a15285a2af030f19e888ddae4e84a81ff"> https://github.com/appcelerator/titanium_mobile/commit/8e8d130a1528...

  11. Thomas Huelbert 2011-04-15

    closing against [INFO] Titanium SDK version: 1.6.0 (01/10/11 08:25 3452f06) using a G1 (1.6) G2 (2.2) sim 2.1 using smoke test.

JSON Source