Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10125] Android: Window properties:Background image is not setting up after height/width toggling.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-24T20:07:13.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sRelease 2.1.3, Release 3.0.0, Sprint 2012-19 Core, 2012 Sprint 19
ComponentsAndroid
Labelscore, layout, qe-and070112, qe-review, qe-testadded, regression
ReporterShyam Bhadauria
AssigneeAllen Yeung
Created2012-07-25T01:27:06.000+0000
Updated2012-09-24T20:07:13.000+0000

Description

This is a regression. It is working fine in 2.1.0. Steps to reproduce: 1) Install the refactored kitchen sink on android device and run it. 2) Go to Base UI -> Window Properties 3) Press button 'Toggle Height/Width' twice. 4) Now press 'Change BG Image'. 5) Again press 'Toggle Height/Width'. 6) Press 'Change BG Image'. Expected result: 1) The app should run successfully over device. 2) It should display 5 buttons to perform window actions. 3) It should resize the window to a smaller size (300*300) and then again to full screen size with a black background. 4) It should change the background image of the window. 5) It will resize the window to a smaller size (300*300) and should change background to black. 6) It should change the background image of the window. Actual result: 1) The app should run successfully over device. 2) It displays 5 buttons to perform window actions. 3) It resizes the window to a smaller size (300*300) and then again to full screen size with a black background. 4) It changes the background image of the window. 5) It resizes the window to a smaller size (300*300) and changes background to black. 6) It DO NOT changes the background image of the window. The background image should change after window resizing.

Comments

  1. Sabil Rahim 2012-08-01

    This doesnot seem like a KitchenSink issue and rather an android bug. It seems like once you set a window background and then change the height and width of the window, the BGimage is ignored after the resize. This doesnot occure in MobileWeb or iOS. Smaller Test case can found [here](http://db.tt/OtEKCec0) Changing ticket to Android layout bug.
  2. Allen Yeung 2012-09-13

    This was introduced by https://github.com/appcelerator/titanium_mobile/pull/2553, will revert the fix since it wasn't necessary.
  3. Allen Yeung 2012-09-13

    PR ready: https://github.com/appcelerator/titanium_mobile/pull/2935
  4. Allen Yeung 2012-09-14

    Backport PR: https://github.com/appcelerator/titanium_mobile/pull/2957
  5. Satyam Sekhri 2012-09-17

    Verified on: Titanium Studio: 2.1.2.201208301612 Titanium SDK: 2.1.3.v20120915120319 Android Device: LGP970 (v2.2), Samsung Galaxy Nexus (v4.0.2)

JSON Source