Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12710] MobileWeb: Setting 'bottom' and 'right' properties for child elements of 'scrollView' causing strange result.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:36:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelslinvalid, mobileweb
ReporterCarter Lathrop
AssigneeChris Barber
Created2013-02-11T18:46:23.000+0000
Updated2018-04-04T23:20:26.000+0000

Description

*Problem* MobileWeb: View position is not consistent with expected results in other platforms. See example code and screenshots. *Steps to reproduce:* 1) open project from attachment. 2) Run it (as mobile web) *Expected result:* see expected_in_android.png *Actual result* see actual_in_webview.png *Code:* {noformat} var win = Ti.UI.createWindow({ backgroundColor: 'black' }); var self = Ti.UI.createScrollView({ width : 400, height : 400, backgroundColor : 'red' }) var customView = Ti.UI.createView({ backgroundColor : 'green', width : 50, height : 100, right : 25, bottom : 50 }) var customView1 = Ti.UI.createView({ backgroundColor : 'yellow', width : 50, height : 100, right : 50, bottom : 100 }) var customView2 = Ti.UI.createView({ backgroundColor : 'blue', width : 50, height : 100, right : 75, bottom : 150 }) var customView3 = Ti.UI.createView({ backgroundColor : 'cyan', width : 50, height : 100, right : 0, bottom : 0 }); self.add(customView); self.add(customView1); self.add(customView2); self.add(customView3); win.add(self); win.open(); {noformat}

Attachments

FileDateSize
actual_in_webview.png2013-02-12T20:52:02.000+00009955
expected_in_android.png2013-02-12T20:53:34.000+000022354
scrollViewBottomBug_actual.png2013-02-11T18:46:23.000+00004994
scrollViewBottomBug_expected.png2013-02-11T18:46:23.000+00005607

Comments

  1. Carter Lathrop 2013-02-12

    Tested and confirmed bug. It seems that the mobileweb version of views are not being placed in the expected position of its parent. You can see that the for the cyan view where the bottom and right properties are set to 0 but the view is not in the bottom right hand corner.
  2. Lee Morris 2017-05-01

    Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
  3. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source