Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20091] iPad SplitWindow not displaying as before

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2018-06-05T22:02:57.000+0000
Affected Version/sRelease 5.1.1
Fix Version/sn/a
ComponentsiOS
LabelssupportTeam
ReporterLuis Galhardo
AssigneeAngel Petkov
Created2015-11-30T09:53:59.000+0000
Updated2018-08-02T22:20:04.000+0000

Description

This is my layout from some days ago: !https://dl.dropboxusercontent.com/u/507021/IMG_0024.jpg! And after the last updates I have the layout all messed up like this: !https://dl.dropboxusercontent.com/u/507021/Captura%20de%20ecr%C3%A3%202015-11-30%2C%20%C3%A0s%2009.45.32.png! I don't remember changing any source code that could cause this behavior, anyone else having problems with SplitView ? Master view seems smaller with objects on top of each other and got no right black vertical border.

Comments

  1. Jebun Naher 2015-11-30

    Hello, Please provide a simple test case that best replicates the issue, also attach your full working environment info. Thanks.
  2. Luis Galhardo 2015-12-01

    *ALL OK* Node.js Node.js Version = 0.10.37 npm Version = 1.4.28 Titanium CLI CLI Version = 4.0.1 Titanium SDK SDK Version = 5.0.0.v20150910173119 SDK Path = /Users/taruga/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.v20150910173119 Target Platform = iphone *NOT OK* Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Titanium CLI CLI Version = 5.0.5 Titanium SDK SDK Version = 5.0.0.v20150910173119 SDK Path = /Users/taruga/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.v20150910173119 Target Platform = iPhone The left view shrinks, it´s not the default 320 pixels anymore. Also, the black vertical line that splits the views disappear . Test Sample: Just use this alloy code: Output: !https://dl.dropboxusercontent.com/u/507021/Captura%20de%20ecr%C3%A3%202015-12-01%2C%20%C3%A0s%2005.35.52.png! Seems that the view width which previously was 320 pixels, now it´s just about 260.
  3. Jérôme Danthinne 2015-12-04

    I corrected this issue by setting in my style.tss "SplitWindow": { landscapeSplit: 0.3125} It corrects the width, but not the divider ;-(
  4. Luis Galhardo 2015-12-04

    I´m having several issues with the last update. SplitWindow problems, data binding that doesn't show up, parts of the views that don't refresh, etc... I can't program like this until all this mess is fixed. Unfortunately, this last update is more like a nightly build and not a stable or beta release.
  5. Luis Galhardo 2015-12-07

    Problem seems related to CLI 5.1.0, using: *appc use 5.0.4* I have SplitWindow working fine again, divider shows, and all other problems I had are not happening
  6. Angel Petkov 2015-12-10

    Hello , I'm sorry to hear that your experiencing issues with the platform. Unfortunately this isn't something that can be fixed , as its technically not a bug. The reason the masterView use to be 320p as oppose the current size. Is because when using "SplitWindow" in alloy it automatically chooses the class to be used and it use to chose an older class which is now deprecated(http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPad.SplitWindow). Within that class the masterView was hard coded to 320p as [~sdarda] pointed out. However the newer splitWindow(http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.SplitWindow) sets the masterView to a percentage of the total width.This was one of the reasons the old split window was deprecated, the size of the view shouldn't be hard coded as it will cause issues when running on new devices. For example if this application was to be ran on the new iPad pro , the masterView would stay at 320p which is not something we want, the masterView should stay the same size in proportion to the details view.
  7. Luis Galhardo 2015-12-11

    What about the vertical divider ? Doesn't show anymore .
  8. Sergey Nosenko 2016-03-30

    I have to use old splitWindow and do small workaround to use it with Alloy: ./lib/ipad.js
       exports.createSplitWindow = function (args) {
           return Ti.UI.iPad.createSplitWindow(args);
       };
       
    and in main.xml
       <Alloy>
           <SplitWindow id="root" module="ipad">
       
  9. Angel Petkov 2016-04-01

    Hi [~darknos] thank you the input and the work around regarding the issue :)!
  10. Luis Galhardo 2016-04-01

    Sergey Nosenko, just what I needed. Thank you :)
  11. Eric Merriman 2018-08-02

    Closing old "Won't fix" tickets. If you disagree, please reopen.

JSON Source