resizable

Why disabling of stage resizable dont work in javafx?

若如初见. 提交于 2019-12-23 10:07:18
问题 When I try to setResizable for my scene in javaFX application it doesn't work. I still can change window size. Here's the code for my test application: @Override public void start(Stage stage) throws Exception { // TODO Auto-generated method stub stage.setTitle("Test window"); stage.setWidth(300); stage.setHeight(200); stage.setResizable(false); stage.show(); } public static void main(String[] args) { // TODO Auto-generated method stub Application.launch(args); } Perhaps I missed something

Is it possible to catch resize event when user resizes text input defined resizable by CSS3?

▼魔方 西西 提交于 2019-12-23 05:44:05
问题 I have text input defined to be resizable using CSS, like this: #text_input { resize:horizontal; } <input type="text" id="text_input" /> Is it possible to catch Javascript (preferrably in jQuery) event when the user resizes input ? I've tried using standart jQuery .resize() but it doesn't work as I suppose to. Thanks for any help... 回答1: you can use the mouseup event. as much as i tried it's called after every resize. if you do a check if the current size is different then the last size your

Resize line from endpoints

不问归期 提交于 2019-12-22 13:49:19
问题 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

Non resizable window with JFace

喜你入骨 提交于 2019-12-22 12:15:38
问题 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

How to add resizer to textarea in IE?

给你一囗甜甜゛ 提交于 2019-12-22 05:28:18
问题 How to add resizer to textarea in IE the same as in Chrome and Firefox? jQuery.resizable() won't work for me. 回答1: Internet Explorer (and Microsoft Edge, as of May 5, 2016) do not support native gripper/resizing on textarea elements. While these may eventually be supported in the future (in Microsoft Edge), the best option you have for now is to polyfill the functionality. Many options exist online that do this, but if you're using jQuery and jQuery UI, you could use the Resizable widget: $(

How can I make an iframe resizable?

不想你离开。 提交于 2019-12-20 08:56:22
问题 We have this group project and I was assigned to make a certain iframe resizable. I've been reading lots of forum posts since last week, and I found out that iframe itself can't be resizable. Is there a way to make my iframe resizable? 回答1: This can be done in pure CSS, like so: iframe { height: 300px; width: 300px; resize: both; overflow: auto; } Set the height and width to the minimum size you want, it only seems to grow, not shrink. Live example: https://jsfiddle.net/xpeLja5t/ This

What is the resizing option for inputTextarea component in JSF

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 12:38:10
问题 I am using JSF2.0 and I have an inputTextArea component and want to prevent the enduser from resizing it.How can I do it.I tried resize="false" but it is not accepting. 回答1: This is to be achieved using the CSS resize property which needs to be set to none . E.g. <h:inputTextarea ... style="resize: none" /> or, better, <h:inputTextarea ... styleClass="unresizable" /> with this in a fullworthy CSS file .unresizable { resize: none; } The same story applies to the PrimeFaces equivalent <p

Resizable handles with jQueryUI

不问归期 提交于 2019-12-18 11:47:59
问题 I need to make resizable handles like in this image. To be more specific, I need those blue dots to be around my <div> to allow resizing from different sides. Currently I'm using the following code: <html> <head> <link rel="stylesheet" href="jquery-ui-1.10.2/themes/base/jquery-ui.css" /> <script src="jquery-1.9.1.min.js"></script> <script src="jquery-ui-1.10.2/ui/jquery-ui.js"></script> <title>border</title> <script type="text/javascript"> $(function() { $('#elementResizable').resizable({

Resizable Canvas (JQuery UI)

纵饮孤独 提交于 2019-12-18 10:43:05
问题 ANY DOM element can be made resizable according to this page: http://jqueryui.com/demos/resizable/ However, it seems that this doesn't work for the CANVAS element. Possible? 回答1: Canvas has two types of resize behavior: Resizing where the contents are stretched to fit the canvas's new dimensions Resizing where the contents remain static while the canvas grows or shrinks Here's a page that demonstrates the two types of "resizing": http://xavi.co/static/so-resizable-canvas.html If you want the

JFrame resizable height ONLY

梦想的初衷 提交于 2019-12-18 02:57:06
问题 JFrame.setResizable(true) lets the user resize both the width and height of a window. Does a method exist which allows the user to ONLY resize the height? Thanks. Edit: The solutions below do NOT seem to work. On a 360x600 JFrame, setResizable(true); pack(); setMaximizedBounds(new java.awt.Rectangle(0, 0, 360, 1200)); setMaximumSize(new java.awt.Dimension(360, 1200)); setMinimumSize(new java.awt.Dimension(360, 600)); setPreferredSize(new java.awt.Dimension(360, 600)); setVisible(true); Still