jquery-ui-resizable

Resizing an element triggers the resize event of the window

房东的猫 提交于 2019-12-07 02:54:57
问题 Looks like that when resizing an HTML element, the windows' resize event gets fired as well. Since I want to execute different logic when resizing elements and when the window gets resized, is there a non-hackish way of dealing with this? http://jsfiddle.net/CPUwW/1/ $(function(){ $(window).on('resize', function(){ // This event gets fired when the #my_element div gets resized, event if // window doesn't get resized itself $('#text').text(++resizes); }); $('#my_element').resizable(); }); In

Jquery resizable reposition handle after scroll

无人久伴 提交于 2019-12-06 08:13:41
I have an html table within a container. the container has a height, and its overflow y set to auto to create a scrollbar .table-container { height: 175px; border-bottom: 2px solid #EEEEEE; overflow-y: auto; } I have also made the container resizable using JQuery UI resizable. $(function () { $(".table-container").resizable({ handles: "s" }); }); unfortunately when I use the scrollbar my resizable handles moves. I would like for it to stay at the bottom of the container. here is the fiddle. https://jsfiddle.net/oyb3r6u8/1/ enter link description here You could use jquery to maintain the

jQuery resize on both sides

余生长醉 提交于 2019-12-06 05:56:16
问题 I'll try to make it clear with words : I would like to know if there is a way with jquery-ui-resizable to resize an object on the 4 sides at the same time, so that the center of the object stay at the same position. Here is the sandbox http://jsfiddle.net/V79Ge/ So, it's quite like the aspectRatio=true, but while I resize the object from one side, it would control the 3 other sides Thank you for your clues! 回答1: Is this the effect you're after: jsFiddle example . jQuery: $('#resizeMe')

Resizing an element triggers the resize event of the window

落爺英雄遲暮 提交于 2019-12-05 08:20:35
Looks like that when resizing an HTML element, the windows' resize event gets fired as well. Since I want to execute different logic when resizing elements and when the window gets resized, is there a non-hackish way of dealing with this? http://jsfiddle.net/CPUwW/1/ $(function(){ $(window).on('resize', function(){ // This event gets fired when the #my_element div gets resized, event if // window doesn't get resized itself $('#text').text(++resizes); }); $('#my_element').resizable(); }); In other words, the problem is that when I resize an element, the resize event gets fired for all of it's

Flot graph resizing error, invalid height

心已入冬 提交于 2019-12-05 00:51:54
问题 I'm trying to add flot graph to my page, and i'm having some problems with adding resizing to the graph. For the resize plugin to work width and height og placeholder div need to be set to 100%. But when i do that and want to load the graph in new window i try to call the plot method on doc ready but the height og my div is 0 althoug the containg div har height = 600px(so the placeholder div should have the same?). <div id ="ResizableContainer" class="ui-widget-content" style="width:900px

jQuery UI Resizable - How to thicken handle

跟風遠走 提交于 2019-12-05 00:48:49
Is it possible to make the handle thicker, for easier grabbing? For example, in the link below, you will notice that I have a handle on a div at the bottom only, which is difficult to get hold of using the mouse as it seems to be 1px high. Is it possible to make the handle 10px heigh, so it looks and feels like the image is being grabbed? http://jsfiddle.net/rYFEY/25/ .ui-resizable-s { bottom: 0; height: 10px; } See: http://jsfiddle.net/thirtydot/rYFEY/376/ + rgba for clarity: http://jsfiddle.net/thirtydot/rYFEY/377/ + rgba - overflow: hidden with the default bottom: -5px : http://jsfiddle.net

jQuery resize on both sides

馋奶兔 提交于 2019-12-04 10:27:30
I'll try to make it clear with words : I would like to know if there is a way with jquery-ui-resizable to resize an object on the 4 sides at the same time, so that the center of the object stay at the same position. Here is the sandbox http://jsfiddle.net/V79Ge/ So, it's quite like the aspectRatio=true, but while I resize the object from one side, it would control the 3 other sides Thank you for your clues! Is this the effect you're after: jsFiddle example . jQuery: $('#resizeMe').resizable({ aspectRatio: true, resize: function(event, ui) { $(this).css({ 'top': parseInt(ui.position.top, 10) +

jQuery Resizable: doubling the resize width

家住魔仙堡 提交于 2019-12-04 05:18:22
问题 Synopsis: If you center a resizable element and expand it left/right, it has the illusion that it is only expanding half of the mouse movement. Reason: This happens because the object is centered. Question: How would you increase the rate that the object is being resized compared to the mouse movement? For centered elements, I'd like the object to expand twice the size of the mouse distance. 回答1: Given a centered DIV, the best I could think of would be to set the width in the callback. $('

Dynamic Jquery Splitter Plugin

本秂侑毒 提交于 2019-12-03 17:48:18
问题 I am trying to use Jquery Splitter http://www.methvin.com/jquery/splitter/ It works fine if the splitter panes are static but I need to add panes dynamically in it. Also I need to remove those panes dynamically as well. How can I remove the splitter binding and add dynamic split regions in it? please check it from here http://01webdesigner.com/Inam/SplitterTest.htm Re-sizing works only in the last dynamically added region. please help 回答1: jQuery UI layout: http://layout.jquery-dev.net/ Ideas

JQuery UI draggable: Exceed containment on one side

爱⌒轻易说出口 提交于 2019-12-03 14:40:16
I am using JQuery UI to implement resizable/draggable elements. Now I would like to define a containment for these elements that limits the resizing/dragging on exactly three(!) sides. E.g. have a look at this JSFiddle example . You can see that the contained element can only be resized/dragged inside the parent's area. What I would like to achieve is that the element can exceed the bottom threshold and be moved to beyond the bottom border of the parent. Nevertheless the resizing/dragging should still be limited at the top, right and left sides as is prescribed by the parent's according