Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2021, 10:27 AM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,082
Karma: 17012286
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, they are stored separately, you will find it for the editor in tweak_book_gui.json

As for the every large initial size I will take a look at it when I am next on windows.
kovidgoyal is offline   Reply With Quote
Old 04-26-2021, 10:39 AM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,082
Karma: 17012286
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's remembering the size for me on windows and the initial size is correct as well.
kovidgoyal is offline   Reply With Quote
Old 04-26-2021, 10:43 AM   #18
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,082
Karma: 17012286
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm guessing what happened to the OP is that a geometry for a much bigger/higher res screen was saved, causing the restore to restore to a bigger size. I have now added some code to ensure windows are no more than the screne size when restoring them.
kovidgoyal is offline   Reply With Quote
Old 04-26-2021, 06:58 PM   #19
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 17,169
Karma: 19750289
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
It's remembering the size for me on windows and the initial size is correct as well.
I think my observations are distinct from the OPs problem

If I invoke the ToC Editor from the Editor and change the window size it is saved in the __value__ of toc_editor_window_geom in tweak_book_gui.json, i.e. it works fine.

My issue is when I invoke the ToC Editor from the Book List and change the window size.

If I remove toc_editor_window_geom in gui.json I get that very large ToC Editor window.

If I invoke the ToC Editor from the Book List and change the window size nothing is saved as toc_editor_window_geom in gui.json so I get stuck with that very large window.

If I copy the toc_editor_window_geom section from tweak_book_gui.json into gui.json I get that window size when I open the ToC Editor from the Book List, but if I resize the window I get stuck with that size, i.e. the __value__ of toc_editor_window_geom in gui.json remains the same.

Added: These may or may not be relevant.
  • I sometimes install a fresh Calibre Portable to experiment with templates, plugins etc. I've noticed that the default size for some dialogue box popups are similarly very large -- but if I resize them the new size sticks so, ça ne fait rien. I can't remember which dialogue box popups, I can find out easy enough if it would be of any help.
  • My monitor is an uncommon size - 2560 × 1440
BR

Last edited by BetterRed; 04-26-2021 at 07:16 PM.
BetterRed is offline   Reply With Quote
Old 04-26-2021, 09:29 PM   #20
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,082
Karma: 17012286
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
By very large do you mean larger than available size? because its initial size is supposed to be the available desktop size - 100 pixels. And that is what I see on my windows machine.

As for not remembering the value, I think I know whats going on. The old vaue gets restored when you quit calibre, so if you dont quit calibre between invocations it will be remembered, if you do, it wont.
kovidgoyal is offline   Reply With Quote
Old 04-26-2021, 09:39 PM   #21
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 39,082
Karma: 17012286
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And this will take care of it: https://github.com/kovidgoyal/calibr...443b1dbeca0bfa
kovidgoyal is offline   Reply With Quote
Old 04-26-2021, 10:23 PM   #22
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 17,169
Karma: 19750289
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
By very large do you mean larger than available size? because its initial size is supposed to be the available desktop size - 100 pixels. And that is what I see on my windows machine.
Yeah, -100 pixies would be about right. 2460*1340 on a 24" monitor is 'very large'.

Quote:
Originally Posted by kovidgoyal View Post
As for not remembering the value, I think I know whats going on. The old vaue gets restored when you quit calibre, so if you dont quit calibre between invocations it will be remembered, if you do, it wont.
That equates with my confusion

BR
BetterRed is offline   Reply With Quote
Old 04-30-2021, 07:27 AM   #23
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 17,169
Karma: 19750289
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Fixed - thanks.

BR
BetterRed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC Editor window - oversized Paulie_D Editor 4 05-05-2015 05:29 PM
Gigantic book library armandaneshjoo Library Management 6 05-24-2013 07:50 PM
Calibre Viewer TOC Window speakingtohe Calibre 4 03-12-2012 11:51 AM
Opening a new window in calibre, and closing another window Dr. Drib Calibre 3 02-23-2012 09:27 AM
iPad The Apple iPad is basically a gigantic iPod Touch. Donnageddon Apple Devices 16 04-04-2010 08:47 AM


All times are GMT -4. The time now is 03:16 PM.


MobileRead.com is a privately owned, operated and funded community.