-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full Screen mode #2727
Full Screen mode #2727
Conversation
I like the feature. As i am not so familiar with github: Is there another way to express this except that comment? |
Browsers implementing full-screen natively, why would iD need it's own button for it? |
This branch is currently failing the tests |
@Abbe98 according to your logic, the Full Screen API in HTML standard is redundant? I think that you should just watch my video, then go to osm.org, open iD editor and click F11 (Full Screen) and compare the result with video:
@pnorman I have written that it's just a proof of concept and development is not completed. I don't want to waste my time for feature that will be rejected. |
Code looks pretty good, the travis issue is just a jslint line break warning. @samanpwbb what do you think? Is it worth having a button for this? |
@bhousel I have not kept the coding conventions. I will update it if this feature is useful. Not all users know about F11 shortcut. Button is much more clear. Of course we should add an icon to the button instead of text. Maybe we should make it smaller, or with completely different style. |
White buttons in the top bar should be reserved for primary actions only. Having the button around is ok, but:
|
@samanpwbb it's just a POC, of course I will add icons for different states.
As I see, that part of toolbar is focused on actions with map. Full Screen button is a feature that changes state of whole editor, not only map. It should be at least in the second part. Before or after the Help button. |
Good point, probably ok to keep it where it is. |
Ok. So, as I understand, this feature is useful. I will continue the development. |
👍 |
…ullscreen is not supported
I have completed the development and changed the design of the button. Checked in FF/Chrome in Ubuntu and Spartan/IE11/IE9 (in IE9 button should be hidden) in Windows 10. Please, review it.
|
@bhousel so? :) |
Thanks @PaulAnnekov I'll try to check it out this weekend. |
@bhousel :) |
I took a look at this today and it really like this feature - it does make editing much better.. My concern is just that the button doesn't really look right where it is, so my plan is to leave the button code commented out for now and just keybind some of the common browser fullscreen shortcuts. This unfortunately makes it less discoverable until I do #1481, but I really like the feature and I do want to get this PR into our release next week. |
@bhousel I don't think that intercepting of reserved F11 key is a good idea. It can be buggy... If you still want it then you should check it's work in all supported browsers. And yes, this shortcut must be written somewhere, if we won't have the button. Good luck :). |
We intercept a lot of the browser's built in keyboard shortcuts, e.g. Cmd-Q, Cmd-S, Cmd-C, Cmd-V and others. I don't see why F11 would be any different, but I'll definitely test it. |
Just merged it, thank you for this! I'm sorry it took a while for me to look at it.. |
@bhousel thanks, no ;) |
We can save vertical space by using Full Screen mode. It's espesially critical for laptops, or other devices with low vertical resolution. You can view the result on this video: OSM/iD in Full Screen (POC). As you can see we are removing everything (system panel, browser tabs, osm menu), except the editor and saving a lot of space.
What do you think about this? Don't review the code, it's just a proof of concept. If you will like it - I will make a TODO list and complete this task.