Skip to content

Commit

Permalink
Resizable: Style updates
Browse files Browse the repository at this point in the history
Ref #14246
Ref gh-1588
  • Loading branch information
arschmitz committed Aug 21, 2015
1 parent 824e05c commit f378e34
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/unit/resizable/common.js
Expand Up @@ -29,7 +29,7 @@ common.testWidget( "resizable", {
minWidth: 10,
zIndex: 90,

// callbacks
// Callbacks
create: null,
resize: null,
start: null,
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/resizable/events.js
Expand Up @@ -203,7 +203,7 @@ test( "resize (containment) works with parent with negative offset", function()
fixedContainer = absoluteContainer.wrap( "<div />" ).parent(),
increaseWidthBy = 50;

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

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

// set up resizable to be contained within absolute container
// Set up resizable to be contained within absolute container
target.resizable({
handles: "all",
containment: "parent"
Expand Down
10 changes: 5 additions & 5 deletions tests/unit/resizable/options.js
Expand Up @@ -126,7 +126,7 @@ test("aspectRatio: 'preserve' (ne)", function() {
test( "aspectRatio: Resizing can move objects", function() {
expect( 7 );

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

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

Expand Down Expand Up @@ -173,7 +173,7 @@ test( "containment", function() {
test( "containment - not immediate parent", function() {
expect( 4 );

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

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

// http://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
// Http://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
var handle = ".ui-resizable-nw",
target = $( "#resizable1" ).css({
padding: 5,
Expand Down
6 changes: 3 additions & 3 deletions ui/widgets/resizable.js
Expand Up @@ -60,7 +60,7 @@ $.widget("ui.resizable", $.ui.mouse, {
// See #7960
zIndex: 90,

// callbacks
// Callbacks
resize: null,
start: null,
stop: null
Expand Down Expand Up @@ -153,7 +153,7 @@ $.widget("ui.resizable", $.ui.mouse, {
display: "block"
}) );

// support: IE9
// Support: IE9
// avoid IE jump (hard set the margin)
this.originalElement.css({ margin: this.originalElement.css("margin") });

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

// propagating resize, and updating values for each animation step
// Propagating resize, and updating values for each animation step
that._updateCache(data);
that._propagate("resize", event);

Expand Down

0 comments on commit f378e34

Please sign in to comment.