Commit f9d58ab1 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #86: changing font size messes up comment boxes

* check canvas visibility in iemgui_displace
* check visibility before updating scroll in canvas_dofont
parent 759b5f12
......@@ -505,7 +505,8 @@ void iemgui_displace(t_gobj *z, t_glist *glist, int dx, int dy)
t_iemgui *x = (t_iemgui *)z;
x->x_obj.te_xpix += dx;
x->x_obj.te_ypix += dy;
iemgui_shouldvis(x, IEM_GUI_DRAW_MODE_MOVE);
if (glist_isvisible(glist))
iemgui_shouldvis(x, IEM_GUI_DRAW_MODE_MOVE);
}
void iemgui_displace_withtag(t_gobj *z, t_glist *glist, int dx, int dy)
......
......@@ -7319,7 +7319,8 @@ static void canvas_dofont(t_canvas *x, t_floatarg font, t_floatarg xresize,
if (pd_class(&y->g_pd) == canvas_class
&& !canvas_isabstraction((t_canvas *)y))
canvas_dofont((t_canvas *)y, font, xresize, yresize);
scrollbar_update(x);
if (glist_isvisible(x))
scrollbar_update(x);
}
/* canvas_menufont calls up a dialog which calls this back */
......
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