Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 95739
Collapse All | Expand All

(-)krecipes/src/exporters/htmlexporter.cpp.orig (-5 / +3 lines)
Lines 17-22 Link Here
17
#include <qfileinfo.h>
17
#include <qfileinfo.h>
18
#include <qdir.h>
18
#include <qdir.h>
19
#include <qstylesheet.h> //for QStyleSheet::escape() to escape for HTML
19
#include <qstylesheet.h> //for QStyleSheet::escape() to escape for HTML
20
#include <dom/dom_element.h>
20
21
21
#include <kconfig.h>
22
#include <kconfig.h>
22
#include <kdebug.h>
23
#include <kdebug.h>
Lines 234-244 Link Here
234
			sizeCalculator->end();
235
			sizeCalculator->end();
235
236
236
			sizeCalculator->view() ->layout(); //force a layout... I assume khtml otherwise puts this off until it is shown
237
			sizeCalculator->view() ->layout(); //force a layout... I assume khtml otherwise puts this off until it is shown
237
238
			DOM::Document doc = sizeCalculator->document();
238
			// Set the size of the element
239
			elementHeight = doc.getElementById( element->id() ).getRect().height();
239
			int newHeight = sizeCalculator->view() ->contentsHeight();
240
			/* if (newHeight>elementHeight) */
241
			elementHeight = newHeight; // Keep user's size if it's defined as bigger
242
240
243
			delete sizeCalculator;
241
			delete sizeCalculator;
244
		}
242
		}

Return to bug 95739