resizable

Window resizable - kAXGrowAreaAttribute always return NULL

人盡茶涼 提交于 2019-12-11 11:13:54
问题 In my app I want to check if windows from others apps are resizable. I´m using the accessibility API to test if the window has the kAXGrowAreaAttribute attribute (if NULL is not resizable) as Peter Hosey answered in this question. The problem is that the kAXGrowAreaAttribute returned value is always NULL it doesn´t matter if the window is resizable or not. Note: to retrieve the value I´m using the UIElementUtilities class from the Apple UIElementInspector example (I also have tried using

Resize draggable objects background image on resize

大城市里の小女人 提交于 2019-12-11 05:21:35
问题 This question is related to : Resizable, draggable object in jquery. Possible? Hello all, I want to resize the background image of a div on jquery resize. How can I do it? Thank you 回答1: You can't set the size of a CSS background-image. But maybe this http://www.cssplay.co.uk/layouts/background.html or this will help http://css-tricks.com/how-to-resizeable-background-image/ 回答2: Basically this would consist of a resizable container (I'd say div) with a non-static position (that'll happen

Resizable Vue-good-table or Vue

£可爱£侵袭症+ 提交于 2019-12-11 03:51:56
问题 I have a table make with Vue-good-table in Vue.js. I need to find a way for do it resizable. Something like this. https://codepen.io/validide/pen/aOKLNo Unfortunately, Vue-good-table do not have this option, far as I know. https://github.com/xaksis/vue-good-table/issues/226 I tested with JQuery, but I do not want mix Jquery and Vue, and I do not know if a library in Jquery, it will work with this component. I tested but I did not find any. There is another way in Javascript/css or Vue for do

Resizable jQuery for booking rooms

筅森魡賤 提交于 2019-12-11 02:06:53
问题 I'm looking at the resizable jQuery UI element: http://jqueryui.com/demos/resizable/#snap-to-grid I have a grid of booking slots - ie. days of week down the left, and hours of the day across the top - all arranged as individual DIVs into a grid. What I would like to be able to do is, someone click on an open slot (or hour) to book that time - however, if there is time available before or after the hour clicked on, allow the person to resize their hour booking to the next hour, but not to

jQuery unpleasant Draggable, Resizable interaction

我只是一个虾纸丫 提交于 2019-12-11 01:17:56
问题 When I resize the first div it causes the next div to jump 'up' the column. To recreate: top div drag the resize handle. jQuery $(function() { $('.portlet').draggable({ grid: [25, 25] }).resizable({ grid: [25, 25] }); }); Layout <div class="portlet" id="P2"> <div class="portlet-header"><h3>News</h3></div> <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div> </div> <div class="portlet" id="Div1"> <div class="portlet-header"><h3>Feeds</h3></div> <div class

How to make html text box draggable and resizable using jQuery UI plugins?

一笑奈何 提交于 2019-12-10 16:54:25
问题 Using jquery ui draggable plugin, I've made html text box draggable in this way: <script type="text/javascript" language="javascript"> $(document).ready(function() { $("#Text1").draggable({ containment: "parent", cancel: null }); }); </script> <form id="form1" runat="server"> <div> <div id="dialog" title="Dialog Box" style="border: solid 1px black;"> <input id="Text1" type="text" style="width: 200px; height: 20px;" value="Text1" /> </div> </div> </form> But, how to make it resizable using

Make image draggable and resizable within div

老子叫甜甜 提交于 2019-12-08 07:45:01
问题 Let me share what I actually want - Create a div. Onclick add an image to the div. Make this image draggable and resizable. We would be able to add multiple image into the div. Below is my code I've done so far - JS : $.fn.extend({ draggableChildren: function(selector) { $(this).on("mouseover", selector, function() { if(!$(this).is(":ui-draggable")) $(this).draggable({ containment: "parent" }); }); return this; } }); $.fn.extend({ resizableChildren: function(selector) { $(this).on("mouseover"

Make only one gridster widget resizable

孤街醉人 提交于 2019-12-06 12:33:14
问题 Is it possible to make only one gridster widget resizable? I've made it so the user can click on a widget heading so that it expands & contracts. I'd like to make it so that when a widget is expanded, it is resizable. Can this be done? If so, how? 回答1: When resize is enable each widget get the gs-resize-handle class in a span element with the setup_resize() function. so you can play with css to hide the resize handle with css by adding a custom class like : .no-resize .gs-resize-handle-both{

Non resizable window with JFace

荒凉一梦 提交于 2019-12-06 09:30:02
I how it's possible to setup non resizable window with JFace API. Consider code below that creates application window. I can't find any methods to setup window as not resizable on shell object or application window parent. Is there something I'm missing? public class Application extends ApplicationWindow { public Application() { super(null); } protected Control createContents(Composite parent) { prepareShell(); return parent; } protected void prepareShell() { Shell shell = getShell(); shell.setSize(450, 300); } public static void main(String[] args) { Application app = new Application(); app

Resize line from endpoints

人走茶凉 提交于 2019-12-06 05:51:34
I am drawing annotations on a view. The line annotation is causing a problem; I have a parent class of Shape (extended from UIView). All the annotations are subclass of shape. In each annotation class i have override the drawRect method. DrawingCanvas class (extended from UIView and is a subview of my viewController's parent view) handles the pan gesture. Here is a piece of code -(void) panGestureRecognizer: (UIPanGestureRecognizer *) panGesture { static CGPoint initialPoint; CGPoint translation = [panGesture translationInView:panGesture.view]; static Shape *shape; if(panGesture.state ==