Hi,


When resizing the board frame with my mouse, the board starts to
resize too late, when the frame is already overlapping the navigation
bar below the board.


I found a quick and dirty hack by limiting the available board height
by some guessed value: Here's the diff that fixes my issue:



diff --git a/tcl/board.tcl b/tcl/board.tcl
index c313b59..9685990 100644
--- a/tcl/board.tcl
+++ b/tcl/board.tcl
@@ -626,7 +626,7 @@ proc ::board::resizeAuto {w bbox} {
   set extraw  [expr [winfo reqwidth $w]  - $::board::_size($w) * 8]
   set extrah  [expr [winfo reqheight $w] - $::board::_size($w) * 8]
   set availw  [expr $availw - $extraw]
-  set availh  [expr $availh - $extrah]
+  set availh  [expr $availh - $extrah - 30]
   set maxSize [expr {$availh < $availw ? $availh : $availw}]
   set maxSize [expr $maxSize / 8]




I could not figure out how to do the fix right, without hard-coding
"30" but using the height (or half of the height?) of the navigation
bar below the board.




Jens

------------------------------------------------------------------------------
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to