Fix incorrect scaling in scrollbar fix (r6895, 35883bb
)
...how did this ever look like it worked?
This commit is contained in:
parent
2928cb7419
commit
ce3ccec528
|
@ -905,7 +905,7 @@ void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU )
|
|||
|
||||
// Account for scrollbars
|
||||
wxSize scrollbarSizeDU = m_canvas->GetSize() - m_canvas->GetClientSize();
|
||||
wxSize scrollbarSizeIU = scrollbarSizeDU * scale;
|
||||
wxSize scrollbarSizeIU = scrollbarSizeDU * (1 / scale);
|
||||
wxPoint centerAdjustedIU = aCenterPositionIU + scrollbarSizeIU / 2;
|
||||
|
||||
// The upper left corner of the client rectangle in internal units.
|
||||
|
|
Loading…
Reference in New Issue