Skip to content
Permalink
Browse files

Resizable: Style updates

Ref #14246
Ref gh-1588
  • Loading branch information
arschmitz committed Aug 21, 2015
1 parent 824e05c commit f378e34789ce616384ddc25704b7f58528099864
Showing with 12 additions and 12 deletions.
  1. +1 −1 tests/unit/resizable/common.js
  2. +3 −3 tests/unit/resizable/events.js
  3. +5 −5 tests/unit/resizable/options.js
  4. +3 −3 ui/widgets/resizable.js
@@ -29,7 +29,7 @@ common.testWidget( "resizable", {
minWidth: 10,
zIndex: 90,

// callbacks
// Callbacks
create: null,
resize: null,
start: null,
@@ -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,
@@ -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,
@@ -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"
@@ -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({
@@ -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 });

@@ -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",
@@ -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",
@@ -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,
@@ -60,7 +60,7 @@ $.widget("ui.resizable", $.ui.mouse, {
// See #7960
zIndex: 90,

// callbacks
// Callbacks
resize: null,
start: null,
stop: null
@@ -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") });

@@ -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);

0 comments on commit f378e34

Please sign in to comment.
You can’t perform that action at this time.