Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15189] iOS7: Opening a Modal Window removes BarImage of the Parent-Window for a moment

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-09T15:08:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.2.0
ComponentsiOS
Labelsbarcolor, barimage, ios7, modal, triage, window
ReporterHans Knöchel
AssigneeVishal Duggal
Created2013-09-14T20:57:31.000+0000
Updated2013-10-18T23:37:42.000+0000

Description

When opening a modal window from a child window having a the property "barImage", this property is ignored and the underlayed "barColor" is used, if set. The given app.js and barImage.png shows this problem. Expected behaviour: The barImage stays where it is and the modal window opens. Given behaviour: The barImage is beeing removed for a moment and comes back after closing the modal window

Attachments

FileDateSize
app.js2013-09-14T20:57:32.000+0000764
barImage.png2013-09-14T20:57:32.000+00001035
barImage@2x.png2013-09-14T20:57:32.000+00001218

Comments

  1. Vishal Duggal 2013-09-16

    We cleanUp windowDecorations in viewWillDisappear. So this is happening. We could possible do it in viewDidDisappear but that might have weird side effects. Not a high priority issue for 3.1.3. Not even sure if we will fix this.
  2. Hans Knöchel 2013-09-16

    Ok, but it seems to be a iOS7-bug only, so the disappearing of barImages should be relevant, too. Without, the modals are useless for productional projects.
  3. Hans Knöchel 2013-09-16

    Additional info: The problem also occurs on iOS < 7 (tested with 5.0, 6.0 and 6.1) and worked fine in older released of the Ti-Sdk. See no reason why thinking about not fixing it. Thank you!
  4. Ingo Muschenetz 2013-09-16

    [~hansknoechel] I think the only reason we wouldn't fix it immediately is that fixing it quickly might introduce more serious (but subtle) side effects that we wouldn't catch in time before the release. In that case, we could fix it and push it to the CI builds so people interested could take advantage of the fix.
  5. Hans Knöchel 2013-09-16

    Ok :-) Guess i use the temporary fix by moving the cleanUp-method to viewDidDisappear. Thank you!
  6. Ingo Muschenetz 2013-09-16

    [~hansknoechel] I think others would appreciate it if you posted your workaround. Is that possible?
  7. Hans Knöchel 2013-09-16

    Just noticed, that moving the method doesn't help at all. The whole titleBar will be removed permanently when doing this. I guess we'll have to wait.
  8. kosso 2013-09-16

    I've found this happens on any window which uses a barImage. The image (and specifically the titleControl) will flicker when returning to the window. To get around it for now, I'm only setting a barImage for < iOS7 devices.
  9. Vishal Duggal 2013-10-09

    This should be fixed along with the backgroundImage refactor done for TIMOB-11876
  10. Wilson Luu 2013-10-18

    Closing ticket as fixed. Verified BarImage does not disappear for a moment on the parent window when opening a modal window. Tested on: Titanium Studio, build: 3.2.0.201310180511 SDK build: 3.2.0.v20131018142442 OS: Mac OS X Mountain Lion (10.8.5) Devices: iphone 5 (6.1.3) iphone 5 (7.0.2) *However,* the attached app.js crashes on iphone 4 (5.1.1) with SDK 3.2.0.v20131018142442. Will file another ticket.

JSON Source