Bug in MTI calculating workspace sizes
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2064
Printed Date: 08 November 2025 at 4:11pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Bug in MTI calculating workspace sizes
Posted By: Ark42
Subject: Bug in MTI calculating workspace sizes
Date Posted: 31 March 2005 at 8:42pm
In CXTPTabClientWnd::CalcWindowRect every workspace size is calculated as if each workspace has its own splitter, which is not true, there is 1 less splitters than workspaces. The lines are: rc.bottom = nBottom - SPLITTER_HEIGHT; and rc.right = nRight - SPLITTER_HEIGHT;
So the workspaces are slightly not the same size by a few pixels, but this can easily be compensated for above by changing int nTotalHeight = m_bHorizSplitting? rcClient.Height(): rcClient.Width(); to int nTotalHeight = (m_bHorizSplitting? rcClient.Height(): rcClient.Width()) + SPLITTER_HEIGHT;
Just adding an extra SPLITTER_HEIGHT into the area used to calculate will offset this difference.
|
Replies:
Posted By: Oleg
Date Posted: 06 April 2005 at 4:17am
Thank you. We changed it.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: Ark42
Date Posted: 22 July 2005 at 12:33pm
This bug is still present in v9.70...
|
Posted By: Ark42
Date Posted: 22 July 2005 at 12:52pm
The problem is now in CXTPTabClientWnd::DoWorkspaceCommand and it is simple to fix. Just change the line in the ACTION_INSERTHORIZ and ACTION_INSERTVERT cases from: pWorkspace->m_dHeight = pFocusWorksapce->m_dHeight / 2; to: pWorkspace->m_dHeight = (pFocusWorksapce->m_dHeight - m_nSplitterSize) / 2;
|
Posted By: Oleg
Date Posted: 26 July 2005 at 2:16am
Fixed.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
|