- Horizontal and vertical margins were mixed
- Also decreased the horizontal margin value
int marginVertical = 0;
if (useMargins) {
- marginHorizontal = 50;
+ marginHorizontal = 5;
marginVertical = 5;
}
// calculate the usable size of the view
- int viewUsableHeight = m_viewSize.height() - 2 * marginHorizontal;
- int viewUsableWidth = m_viewSize.width() - 2 * marginVertical;
+ int viewUsableHeight = m_viewSize.height() - 2 * marginVertical;
+ int viewUsableWidth = m_viewSize.width() - 2 * marginHorizontal;
// calculate how many levels must be zoomed out from the closest zoom level to get the rect
// fit inside the usable view area