Commit 7a844a76 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

(XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll

bar if its width is smaller than that of Aqua small scroll bar.
parent f5eb1d84
2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
Undo 2006-03-06 changes.
* macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
bar if its width is smaller than that of Aqua small scroll bar.
2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
 
* minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
......
......@@ -5217,7 +5217,11 @@ XTset_vertical_scroll_bar (w, portion, whole, position)
#ifdef USE_TOOLKIT_SCROLL_BARS
if (NILP (bar->track_top))
{
if (sb_width >= disp_height)
if (sb_width >= disp_height
#ifdef MAC_OSX
|| sb_width < MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH
#endif
)
{
XSETINT (bar->track_top, 0);
XSETINT (bar->track_height, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment