Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_scrollpane.c
Log Message:
Minor change to prevent scrollpane contents from overlapping the scrollbars.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollpane.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- ewl_scrollpane.c 10 Jun 2003 07:02:19 -0000 1.14
+++ ewl_scrollpane.c 11 Jun 2003 07:02:23 -0000 1.15
@@ -56,6 +56,7 @@
ewl_container_init(EWL_CONTAINER(s), "scrollpane", __ewl_scrollpane_add,
__ewl_scrollpane_child_resize, NULL);
+ ewl_object_set_fill_policy(EWL_OBJECT(s), EWL_FILL_POLICY_ALL);
/*
* Create the container to hold the contents and it's configure
@@ -63,6 +64,7 @@
*/
s->box = ewl_cell_new();
ewl_widget_set_appearance(EWL_WIDGET(s->box), "scrollbox");
+ ewl_object_set_fill_policy(EWL_OBJECT(s->box), EWL_FILL_POLICY_SHRINK);
/*
* Create the scrollbars for the scrollpane.
@@ -221,8 +223,8 @@
* Update the fill percentage on the scrollbars based on available space
* for the content.
*/
- b_width = ewl_object_get_minimum_w(EWL_OBJECT(s->box));
- b_height = ewl_object_get_minimum_h(EWL_OBJECT(s->box));
+ b_width = ewl_object_get_preferred_w(EWL_OBJECT(s->box));
+ b_height = ewl_object_get_preferred_h(EWL_OBJECT(s->box));
ewl_scrollbar_set_fill_percentage(EWL_SCROLLBAR(s->hscrollbar),
(double) content_w /
(double) b_width);
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs