Skip to content

Commit 9a1485c

Browse files
committed
fix toolbar groups width (set auto)
1 parent 534cf82 commit 9a1485c

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

jquery.cleditor.js

-11
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,6 @@
235235
}
236236
editor.$tb_timeout = null;
237237

238-
// Initialize the group width
239-
var groupWidth = 0;
240-
241238
// Add the buttons to the toolbar
242239
$.each(options.controls.split(" "), function (idx, buttonName) {
243240
if (buttonName === "") return true;
@@ -250,10 +247,6 @@
250247
.addClass(DIVIDER_CLASS)
251248
.appendTo($group);
252249

253-
// Update the group width
254-
$group.width(groupWidth + 1);
255-
groupWidth = 0;
256-
257250
// Create a new group
258251
$group = $(DIV_TAG)
259252
.addClass(GROUP_CLASS)
@@ -283,10 +276,6 @@
283276
.css('backgroundPosition', button.stripIndex * -24)
284277
.appendTo($buttonDiv);
285278

286-
// Update the group width
287-
groupWidth += 24;
288-
$group.width(groupWidth + 1);
289-
290279
// Add the unselectable attribute for ie
291280
if (ie)
292281
$buttonDiv.attr(UNSELECTABLE, "on");

0 commit comments

Comments
 (0)