Changed the way the button calculates it's size with respect to suggested size.

I factored out the part where border and padding is added in so it can be overridden.


git-svn-id: svn://10.0.0.236/trunk@45337 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1999-08-31 13:03:38 +00:00
parent 02ad25efb5
commit 1c8a506178
4 changed files with 42 additions and 14 deletions

View File

@@ -53,6 +53,9 @@ public:
nsString* aValues, nsString* aNames);
virtual void MouseClicked(nsIPresContext* aPresContext);
protected:
NS_IMETHOD AddComputedBorderPaddingToDesiredSize(nsHTMLReflowMetrics& aDesiredSize,
const nsHTMLReflowState& aSuggestedReflowState);
private:
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }