Opened 7 years ago

Closed 7 years ago

Last modified 7 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 7 years ago by scottgonzalez

  • Milestone changed from TBD to 1.9
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 01ad6ce.

comment:2 Changed 7 years ago by rdworth

  • Milestone changed from 1.9 to 1.8.2
Note: See TracTickets for help on using tickets.