![]() |
#1 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
PV window size
Howdy - just mullin' over a possible change to sigil....
I wasn't able to find a way to set the PV window to a specific size. Yes, I could drag the corners/sides, but I couldn't tell the exact size of the window in pixels. It would be nice to set that window to my target device display size (eg iphone 7+: 1080 x 1920 pixels) so that I can get a better feel for how the book will flow. Ideally there would be an area in preferences where I could select the default size of the window from a list of common devices, or set a custom size... it would default to that size when un-docking from the main sigil window, or when the PV view is first selected. If that is not feasible, is it possible to include the window size in the header or status bar so I can drag it to the proper dimensions? Thanks! |
![]() |
![]() |
![]() |
#2 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
I was kind of intrigued by this suggestion, so I decided to do an experiment. I undocked the preview window, then imported a screenshot from my Galaxy (which I seldom use for reading epubs anyway; but I had one handy) into a blank book. Resized the preview window to match the screenshot, and (I think) had basically what you were suggesting.
If your device doesn't have a screenshot function, you could create a nice graphic using your favorite graphics program in the correct size and import that instead. Just an idea. Last edited by JustinThought; 07-17-2017 at 09:25 AM. |
![]() |
![]() |
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I will look into getting the current window size and adding it to the title bar. I just have to figure out how to do that.
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 467802
Join Date: Apr 2016
Device: none
|
In the meanwhile, you can get the size of the PV by typing [window.]innerWidth and [window.]innerHeight (without brackets: 'window.' is optional) in the JavaScript console of the PV's Development Tools.
You can't set a new size, and you must retype the command every time, but at least you get it. |
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
![]() |
![]() |
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi,
Just committed the change for the Preview window title to provide height and width information. It should appear in the next release unless it ends up causing problems (which I doubt but you never know ... ) Hope this helps |
![]() |
![]() |
![]() |
#7 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Thanks so much Kevin!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
possible to reduce size of Sigil window? | Notjohn | Sigil | 5 | 09-02-2016 12:57 PM |
Viewer window size in Win 7 | Eduardo_b | Calibre | 10 | 03-02-2016 03:01 PM |
Any way to change the size of the dictionary window ? | Harko33 | PocketBook | 1 | 03-23-2014 03:28 PM |
Viewer window size | crich70 | Calibre | 2 | 08-27-2010 11:29 PM |
Window size problem | hairybiker | Calibre | 14 | 04-14-2010 03:52 PM |