efl/src/bin/elementary
Jean-Philippe Andre fb797611ed scroller: Adjust rare case when content fits but bars are visible
This was simply annoying me. A scroller packed inside a box 150x150
should have enough space to hold an object of size 140x140. That's
a whole lot of 10 pixels margin!

This patch adds a special case code when the content "seems" to fit
inside the box but still one or both bars are visible. One problem
is that we can't know from the theme how much margin is used by a
scroller even when its bars are hidden. So we have to try to remove
them and then recalc to test.

This definitely adds quite a few more calculations if the state of
the scroll bars changes, but the result is way more pleasant :) This
should be limited to corner cases anyway (when the content size is
within 0 to ~20 pixels of the scroller size, depending on the theme
of course).

The test case is adjusted to show that same size content triggers
a show on the bars (because of theme margins). See CtxPopup test.
2016-10-27 10:02:56 +09:00
..
.gitignore elementary: merge in elm_code example. 2016-06-03 14:17:27 -07:00
Makefile.am Ui text: introduce this new text widget 2016-06-16 19:15:20 +01:00
config.c elm: config: fix API naming to use disabled instead of disable to unify 2016-08-09 16:26:49 +02:00
elementary_codegen.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
elm_prefs_cc.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
elm_prefs_cc.h elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
elm_prefs_cc_handlers.c elm_prefs_cc - clean up return with added brackets to be clear 2016-07-08 18:33:02 +09:00
elm_prefs_cc_mem.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
elm_prefs_cc_out.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
elm_prefs_cc_parse.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
quicklaunch.c elm quicklaunch binary - fix coverity CID 1353607 2016-07-24 18:44:15 +09:00
run.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test.c elm_test: Add minor hack to run test when Enter is pressed 2016-10-26 14:01:43 +09:00
test.h elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_3d.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_access.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_actionslider.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_anim.c Efl object: Rename Eo_Event -> Efl_Event. 2016-08-30 13:34:10 +01:00
test_bg.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_box.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_bubble.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_button.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_calendar.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_check.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_clock.c Test/Clock: fit Exactness requirements 2016-03-27 13:26:15 +03:00
test_cnp.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_code.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
test_colorclass.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_colorselector.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_combobox.c Manual revert of: commit 07404215a9 2016-08-11 12:14:07 +02:00
test_config.c edje: update a style when a style is added as class's member 2016-07-11 13:13:39 +09:00
test_conform.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_conform_indicator.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_ctxpopup.c scroller: Adjust rare case when content fits but bars are visible 2016-10-27 10:02:56 +09:00
test_cursor.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_datetime.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_dayselector.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_disable.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_diskselector.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_dnd.c elm test dnd: replace strcat with eina_strbuf 2016-05-10 15:13:27 +09:00
test_efl_ui_text.c Ui text: introduce this new text widget 2016-06-16 19:15:20 +01:00
test_eio.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_entry.c elm test: correct elm_entry_autocapital_type_set() argument 2016-10-21 08:57:16 -04:00
test_entry_anchor.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_entry_anchor2.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_events.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
test_explode.c Fix "cast from pointer to integer of different size" on Windows 2016-04-25 13:49:43 +09:00
test_explode.h elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_external.c elementary: add test for edje external combobox 2016-07-03 21:40:03 +02:00
test_factory.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_fileselector.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_fileselector_button.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_fileselector_entry.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_flip.c New flip mode called ELM_FLIP_CROSS_FADE 2016-10-21 14:13:00 +09:00
test_flip_page.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_flipselector.c spin interface: common interface for flipselector and spinner 2016-04-29 18:56:51 -07:00
test_floating.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_focus.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_focus_custom_chain.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_focus_policy.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_focus_style.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_gengrid.c gengrid: support for non homogenous items 2016-10-19 15:48:51 +09:00
test_genlist.c Elementary: Genlist Tree Test - Add an item with the indent style to match tree style. 2016-08-26 10:37:26 -05:00
test_gesture_layer.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_gesture_layer2.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_gesture_layer3.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_glview.c elementary test_glview: guide ELM_ACCEL rather than ELM_ENGINE 2016-09-12 13:15:15 +09:00
test_glview_manygears.c elementary test_glview: guide ELM_ACCEL rather than ELM_ENGINE 2016-09-12 13:15:15 +09:00
test_glview_simple.c elementary test_glview: guide ELM_ACCEL rather than ELM_ENGINE 2016-09-12 13:15:15 +09:00
test_grid.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_grid_static.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
test_hover.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_hoversel.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_icon.c FDO icons: add missing system-file-manager icon 2016-10-09 21:42:53 +02:00
test_icon_animated.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_icon_desktops.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_image.c elm_image: Add smart cbs for async open 2016-09-23 11:28:14 +09:00
test_index.c Index : Use orientation interface APIs instead of horizontal set/get APIs 2016-05-18 18:33:53 +09:00
test_inwin.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_label.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_launcher.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_layout.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_list.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_main_menu.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_map.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_menu.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_multi.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_multibuttonentry.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_naviframe.c naviframe: Add "item,activated" smart callback. 2016-10-07 17:07:48 +09:00
test_naviframe_complex.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_notify.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_nstate.c Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +01:00
test_panel.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_panes.c Panes: Use orientation interface APIs instead of horizontal set/get APIs 2016-05-18 00:36:09 +09:00
test_photo.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_photocam.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_popup.c popup: add popup default scrollable flag config for other profiles. 2016-05-17 10:22:07 +09:00
test_prefs.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_progressbar.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_radio.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_scaling.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_scroller.c scrollable_interface: fixed gravity_set() API. 2016-09-22 11:06:29 +09:00
test_segment_control.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_separator.c Separtor: use orientation APIs 2016-05-27 10:11:13 +05:30
test_slider.c slider: Add range support 2016-03-28 14:09:13 +05:30
test_slideshow.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_spinner.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_store.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_sys_notify.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_systray.c Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +01:00
test_table.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_thumb.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_toolbar.c elm: Update toolbar test to show fix 2016-09-25 17:21:40 +01:00
test_tooltip.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_transit.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_transit_bezier.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_ui_box.c Eo: Make function overrides implicit. 2016-09-08 13:59:04 +01:00
test_ui_grid.c Eo: Change the way functions are registered to classes 2016-09-09 11:14:35 +01:00
test_video.c elm video: correct api 2016-08-16 12:36:26 +09:00
test_weather.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_web.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_win_dialog.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_win_inline.c Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +01:00
test_win_keygrab.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_win_plug.c Efl object: Rename Eo_Event -> Efl_Event. 2016-08-30 13:34:10 +01:00
test_win_socket.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_win_state.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00
test_win_wm_rotation.c elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00