From 2bd985c4f5a5c27260e6057a1ca8a2e0e586acbb Mon Sep 17 00:00:00 2001 From: josef Date: Sat, 26 Oct 2002 14:23:48 +0000 Subject: - reduce number of lines correctly (fixes problems with small fonts) - when using fullscreen, move corner widget into lower right corner :) --- (limited to 'noncore/apps/opie-console') diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp index 2db214c..d1ff85e 100644 --- a/noncore/apps/opie-console/TEWidget.cpp +++ b/noncore/apps/opie-console/TEWidget.cpp @@ -1158,6 +1158,10 @@ void TEWidget::calcGeometry() scrollbar->resize(QApplication::style().scrollBarExtent().width(), contentsRect().height() - hwidth); + if(!showhscrollbar) cornerButton()->move(0, 0); + else cornerButton()->move(contentsRect().width() - hwidth, contentsRect().height() - hwidth); + + if(showhscrollbar == 1) { hscrollbar->resize(contentsRect().width() - hwidth, hwidth); @@ -1207,8 +1211,8 @@ void TEWidget::calcGeometry() if(showhscrollbar == 1) { - //bY = bY - 10; - lines = lines - 1; + lines = lines - (hwidth / font_h) - 1; + if(lines < 1) lines = 1; } } -- cgit v0.9.0.2