summaryrefslogtreecommitdiff
path: root/noncore/apps
authorjosef <josef>2002-10-26 13:59:17 (UTC)
committer josef <josef>2002-10-26 13:59:17 (UTC)
commit86704160817aedc391ac16199b9fd1feec880a7f (patch) (unidiff)
treebbd5ca08392cbd6612951ab4781fef6fe8a16285 /noncore/apps
parentffa4d7c4df80207411c27746ae884cbcead4e619 (diff)
downloadopie-86704160817aedc391ac16199b9fd1feec880a7f.zip
opie-86704160817aedc391ac16199b9fd1feec880a7f.tar.gz
opie-86704160817aedc391ac16199b9fd1feec880a7f.tar.bz2
- handle no vscrollbar and vscrollbar on left side (hopefully)
- when changing word wrap, reset widget automatically
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/TEWidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/TEWidget.cpp b/noncore/apps/opie-console/TEWidget.cpp
index bf9a313..2db214c 100644
--- a/noncore/apps/opie-console/TEWidget.cpp
+++ b/noncore/apps/opie-console/TEWidget.cpp
@@ -1177,2 +1177,4 @@ void TEWidget::calcGeometry()
1177 blX = (contentsRect().width() - (columns*font_w) ) / 2; 1177 blX = (contentsRect().width() - (columns*font_w) ) / 2;
1178 if(showhscrollbar)
1179 blX = -hposition * font_w;
1178 brX = blX; 1180 brX = blX;
@@ -1184,2 +1186,4 @@ void TEWidget::calcGeometry()
1184 brX = (contentsRect().width() - (columns*font_w) - scrollbar->width() ) / 2; 1186 brX = (contentsRect().width() - (columns*font_w) - scrollbar->width() ) / 2;
1187 if(showhscrollbar)
1188 brX = -hposition * font_w;
1185 blX = brX + scrollbar->width(); 1189 blX = brX + scrollbar->width();
@@ -1346,2 +1350,4 @@ void TEWidget::setWrapAt(int columns)
1346 vcolumns = columns; 1350 vcolumns = columns;
1351 propagateSize();
1352 update();
1347} 1353}