Skip to content

Commit f378e34

Browse files
committed
Resizable: Style updates
Ref #14246 Ref gh-1588
1 parent 824e05c commit f378e34

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/unit/resizable/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ common.testWidget( "resizable", {
2929
minWidth: 10,
3030
zIndex: 90,
3131

32-
// callbacks
32+
// Callbacks
3333
create: null,
3434
resize: null,
3535
start: null,

tests/unit/resizable/events.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ test( "resize (containment) works with parent with negative offset", function()
203203
fixedContainer = absoluteContainer.wrap( "<div />" ).parent(),
204204
increaseWidthBy = 50;
205205

206-
// position fixed container in window top left
206+
// Position fixed container in window top left
207207
fixedContainer.css({
208208
width: 400,
209209
height: 100,
@@ -212,7 +212,7 @@ test( "resize (containment) works with parent with negative offset", function()
212212
left: 0
213213
});
214214

215-
// position absolute container within fixed on slightly outside window
215+
// Position absolute container within fixed on slightly outside window
216216
absoluteContainer.css({
217217
width: 400,
218218
height: 100,
@@ -221,7 +221,7 @@ test( "resize (containment) works with parent with negative offset", function()
221221
left: -50
222222
});
223223

224-
// set up resizable to be contained within absolute container
224+
// Set up resizable to be contained within absolute container
225225
target.resizable({
226226
handles: "all",
227227
containment: "parent"

tests/unit/resizable/options.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ test("aspectRatio: 'preserve' (ne)", function() {
126126
test( "aspectRatio: Resizing can move objects", function() {
127127
expect( 7 );
128128

129-
// http://bugs.jqueryui.com/ticket/7018 - Resizing can move objects
129+
// Http://bugs.jqueryui.com/ticket/7018 - Resizing can move objects
130130
var handleW = ".ui-resizable-w",
131131
handleNW = ".ui-resizable-nw",
132132
target = $( "#resizable1" ).resizable({
@@ -143,7 +143,7 @@ test( "aspectRatio: Resizing can move objects", function() {
143143
equal( target.height(), 100, "compare height - no size change" );
144144
equal( target.position().left, 75, "compare left - no movement" );
145145

146-
// http://bugs.jqueryui.com/ticket/9107 - aspectRatio and containment not handled correctly
146+
// Http://bugs.jqueryui.com/ticket/9107 - aspectRatio and containment not handled correctly
147147
$( "#container" ).css({ width: 200, height: 300, position: "absolute", left: 100, top: 100 });
148148
$( "#resizable1" ).css({ width: 100, height: 100, left: 0, top: 0 });
149149

@@ -173,7 +173,7 @@ test( "containment", function() {
173173
test( "containment - not immediate parent", function() {
174174
expect( 4 );
175175

176-
// http://bugs.jqueryui.com/ticket/7485 - Resizable: Containment calculation is wrong
176+
// Http://bugs.jqueryui.com/ticket/7485 - Resizable: Containment calculation is wrong
177177
// when containment element is not the immediate parent
178178
var element = $( "#child" ).resizable({
179179
containment: "#container2",
@@ -205,7 +205,7 @@ test( "containment - not immediate parent", function() {
205205
test( "containment - immediate parent", function() {
206206
expect( 4 );
207207

208-
// http://bugs.jqueryui.com/ticket/10140 - Resizable: Width calculation is wrong when containment element is "position: relative"
208+
// Http://bugs.jqueryui.com/ticket/10140 - Resizable: Width calculation is wrong when containment element is "position: relative"
209209
// when containment element is immediate parent
210210
var element = $( "#child" ).resizable({
211211
containment: "parent",
@@ -302,7 +302,7 @@ test( "grid - Resizable: can be moved when grid option is set (#9611)", function
302302
test( "grid - maintains grid with padding and border when approaching no dimensions", function() {
303303
expect( 2 );
304304

305-
// http://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
305+
// Http://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
306306
var handle = ".ui-resizable-nw",
307307
target = $( "#resizable1" ).css({
308308
padding: 5,

ui/widgets/resizable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $.widget("ui.resizable", $.ui.mouse, {
6060
// See #7960
6161
zIndex: 90,
6262

63-
// callbacks
63+
// Callbacks
6464
resize: null,
6565
start: null,
6666
stop: null
@@ -153,7 +153,7 @@ $.widget("ui.resizable", $.ui.mouse, {
153153
display: "block"
154154
}) );
155155

156-
// support: IE9
156+
// Support: IE9
157157
// avoid IE jump (hard set the margin)
158158
this.originalElement.css({ margin: this.originalElement.css("margin") });
159159

@@ -796,7 +796,7 @@ $.ui.plugin.add("resizable", "animate", {
796796
$(pr[0]).css({ width: data.width, height: data.height });
797797
}
798798

799-
// propagating resize, and updating values for each animation step
799+
// Propagating resize, and updating values for each animation step
800800
that._updateCache(data);
801801
that._propagate("resize", event);
802802

0 commit comments

Comments
 (0)