Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#5567 closed bug (fixed)

button text, hide then show again

Reported by: jwystup Owned by:
Priority: minor Milestone: 1.8.2
Component: ui.button Version: 1.8
Keywords: button, text Cc:
Blocked by: Blocking:


I'm trying to create a toolbar that displays text and icons on buttons. But when the browser is resized to smaller than the width of the toolbar with all of the text (before it wraps to a new line of buttons), I want to remove the text. This works fine. The problem is when I try to add the text back in (when the window is big enough to show it again). The icons are shifted to the left, but no text. Maybe I'm doing something wrong. Here's the problem code:

/* on resize function */
function updateToolbar() {
	/* Update Width: */
	if (jq(".toolbar").innerWidth() > 710) { //text
		jq(".toolbar button").button("option", "text", true);
	} else { //just icons
		jq(".toolbar button").button("option", "text", false);

Change History (2)

comment:1 Changed 13 years ago by Scott González

Milestone: TBD1.9
Resolution: fixed
Status: newclosed

Fixed in 01ad6ce.

comment:2 Changed 13 years ago by rdworth

Note: See TracTickets for help on using tickets.