Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20187] Windows: Window width & height for Store App

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-05-10T04:31:38.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-01-04T02:26:22.000+0000
Updated2016-05-12T17:32:08.000+0000

Description

As of Windows 10, Windows Store App began to handle its independent Window and does not run under full-screen mode. Because Titanium API basically runs under mobile environment, we don't usually think about size of main Window. We want to handle Window size under Store App.
var win = Ti.UI.createWindow({width:300, height: 500});
win.open(); // window should be shown with size of 300x500
!window.png|thumbnail!

Attachments

FileDateSize
storeHeightWidth.PNG2016-05-06T21:29:27.000+000010472
window.png2016-01-04T02:25:55.000+00006617

Comments

  1. Kota Iguchi 2016-01-04

    https://github.com/appcelerator/titanium_mobile_windows/pull/519
  2. Harry Bryant 2016-05-06

    I can verify that setting the window height / width still does not work for Store App. _(See attached screenshot)_ Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201605030516 Ti SDK: 5.3.0.v20160503133640 Appc NPM: 4.2.5-5 Appc Core: 5.3.0-43 Node: v4.4.2 *Reopening Ticket.*
  3. Kota Iguchi 2016-05-10

    Resizing to 50 x 50 doesn't work for Window because of platform component spec. According to the [doc from MS](https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.applicationview.tryresizeview) resizing Window only works when: - The requested size is larger than the available work area. - The requested size is less than the view's minimum size. - This method is called while in while the app is running in Tablet Mode. And the doc says minimum size is 192 x 48. So Resizing to 50 x 50 doesn't work in this case. So I think this is kind of a documentation issue. I'll request documentation update.
  4. Kota Iguchi 2016-05-11

  5. Harry Bryant 2016-05-12

    [~kota] Thank you for clarifying the minimum & maximum dimensions. I can now verify that resizing the window to any dimension between the min / max works correctly. Tested on: Windows 10 Pro Appc Studio: 4.6.0.201605030516 Ti SDK: 5.3.0.v20160509143032 Appc NPM: 4.2.5-5 Appc Core: 5.3.0-44 Node: v4.4.4 *Closing Ticket.*

JSON Source