Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Conversation

kennystrawnmusic
Copy link
Contributor

To make the code editor less dependent on screen resolution, my changes to the code editor being pull-requested against perform calculations using screen.availWidth and screen.availHeight to create the window in proportion to said bounds. Hopefully they will be accepted upstream... Screenshot of what the changes do attached below.
screenshot 2013-07-17 at 11 18 51

@sowbug
Copy link
Contributor

sowbug commented Jul 17, 2013

We might also want to add an id (http://developer.chrome.com/apps/app.window.html#method-create) so that if this isn't what people want -- think 30-inch monitor on Chromebox -- they can adjust it and it'll remember the previous position. Thoughts?

@dinhvh
Copy link
Contributor

dinhvh commented Jul 17, 2013

I also think the window should be singleton'ed.

…ndow will actually remember its position when resized, closed, and reopened.
@kennystrawnmusic
Copy link
Contributor Author

@sowbug Testing the above on my Chromebook in question (since the only way to get Git on a Chromebook is with the developer switch on) right now... Let's see what happens.

@kennystrawnmusic
Copy link
Contributor Author

Okay, confirmed: Merely adding an ID suddenly allows the bounds to be remembered even when the window is destroyed. As for singletoning it as @dinhviethoa mentioned: "singleton: true" according to the app.window API is the default behavior, so no issues there.

sowbug added a commit that referenced this pull request Jul 21, 2013
@sowbug sowbug merged commit 7f75783 into googlearchive:master Jul 21, 2013
dinhvh pushed a commit that referenced this pull request Aug 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants