FAQ Database Discussion Community


Meteor - trigger window resize on document load

meteor,resize,onload
I'm newbie in Meteor looking for jQuery alternative of $(window).load(function(){ $(window).resize(function(){ // do stuff }); }); I'm wordering what is the right way to do this in Meteor?...

Resize canvas element/shape

jquery,html5,canvas,resize
I basically am in the process of creating a small script that will allow you to upload an image, mark somewhere on the image with a yellow box and then save the image. I am using HTML5 canvas for this. I have everything in place, uploading images and adding the...

When Using Critical CSS, Jquery function does is not running on load

javascript,jquery,css,optimization,resize
I'm trying to optimise my website (http://www.mazion.co.uk). As such, I tried to create critical CSS for the site using penthouse. (See Critical CSS used here - this was generated by the main developer of penthouse for me). However, when using critical CSS, one of the subpages on my website does...

How to resize UITextField as user types in Swift

ios,iphone,swift,resize,uitextfield
I'm trying to write a messaging application in Swift on IOS8. Essentially I'm trying to mimic what the texting app in IOS does when you reach the edge of the textfield--the height of the textfield increases, and a new line is made. Right now when I type, the words just...

Responsive Video Window resize (possible js / jquery conflict)

javascript,jquery,html5,video,resize
I have a module wherein a user can select which video file to play for the smartphone, tablet and desktop. Let's say the user uploads three different videos. When you go to the site(local) it loads the appropiate file according to screen size so the document ready code is working....

Android- Image resize and cropping

android,image,resize,crop
I am using a library to choose an image from the gallery and crop it. However, I found an option for rotating the image as well. Here's the link to the library I'm using. In my code I'm accessing the provided functionality similar to the example given in the library....

Resizing an imageview's width/height greater or lesser upon a button click?

android,image,resize,imageview
Would this work for changing an imageview's size? Doing something such as: ImageView image = (ImageView) findViewById(R.id.image); relativeLayout.addView(image); ... Then upon button click have this happen: image.getLayoutParams().width = image.getLayoutParams().width - 10; I click my button but nothing seems to happen. Why? What's the correct way to go about manually resizing...

Have a clickable page

c#,xaml,resize,textblock,viewbox
What I want is to have a page with a Textblock in the middle. Also I want the page to be clickable (as in you should be able to click anywhere on the entire page and the function will be called). What I've tried is to have the TextBlock in...

Update Namespace Module Variables from external function

javascript,jquery,namespaces,resize
I'll try and keep this super simple and just use an outline of the code I currently have. Essentially I have a namespace module that is a self-invoking function, it runs on load and populates the variables with their values and returns them to make them accessible to other functions:...

Angular JS resizing an element when a textarea resizes

html,angularjs,resize
I am building a directive for writing and previewing comments similar to that of Github comments (conversations). My directive has two HTML elements, a textarea and a div (using angular-marked). What I like to do is to resize my div when I resize my textarea. I have scanned this site...

resize image, get rid of 0-valued pixels Matlab

matlab,matrix,resize
I've got an image with all pixel values set to 0 except for a small rectangular window region. What I'd like to do is resize the image to get rid of all the 0 valued pixels and just be left with the rectangular window region. What's the easiest way to...

Getting a mobile site to display as a desktop site, mine isn't, any ideas?

css,header,website,resize
Please take into consideration I am pretty new to programming and only know basic things! Currently, the header on my shop has not got a width set and works fine on the desktop site > feel free to visit to view www.Part-Box.com However, when the site is loaded on a...

PyQt5 resize only one child widget when window is resized

python,qt,layout,resize,pyqt
I'm building a GUI in PyQt5. Its structre will look like on the attached picture. What I need is to managed that when window is resized: Blue area resizes both horizontally and vertically Read and green areas resize only vertically purple area resizes only horizontally user can change size of...

How to keep divs from overlapping/moving/making my page look ugly when resizing width and/or height of browser window

html,css,resize,margin,padding
So I'm trying to be able to keep everything where it is even on a a window re size.. an example of what I wish for is similar to face book's registration page (or any page on facebook for that matter... everything gets hidden behind the browser as i minimize...

How to resize DIV element according to browser size?

html,resize
So here's a project I'm doing for school: http://graciousevents.co.uk/ The problem is when the browser is re-sized, the photo-gallery moves underneath each other and then the contact DIV gets pushed to the left. How can I correct this so the contact div doesn't get pushed to the left....

Python Resize Multiple images ask user to continue

python,xml,image,resize
I'm trying to make a script that resize multiple or a single image based on a data pulled from XML. My question is if i have multiple images how can I print out a qusetion like "There are more than 1 image do you wish to resize image 2 also?......

Image Disappears When Re-sizing In CSS

html,css,image,resize
I am a graphic designer trying to code a website. I am stuck on the homepage and have been for weeks. My problem is that I can't get an image to re-size with CSS because it disappears or gets cut off. Here is what I am trying to do Here...

Changing the same variable for all existing subthreads

java,multithreading,resize,synchronized
sorry in advance if that question did get asked before somewhere here. I really tried to find something that helps me. Sadly I had no luck. Here is my situation: I have a Frame class with a button and a slider. And I have a thread class. With the button...

Auto layout constraint breaks when resizing view dynamically (dragging motion)

ios,resize,autolayout,constraints
I have a view that is sandwiched between two other views, and the height of the middle view can be changed through pan gesture. I'm using a gesture recognizer to get the location of touch and feeding the value to the middle view's height constraint to make it dynamically resizable....

Resize image without loss of information

java,image,resize,scale,bufferedimage
I was trying to do really the same functionality of resizing images like in MS Word. I want to resize BufferedImage but I’m losing some information during process of resizing. I tried to implement two approaches, but both produced same result. Before any resizing: Picture after few resize actions in...

Error on running “adb shell wm density 240” for changing Android device density

android,resize,screen,adb
I want to resize the screen on Android device. When I run the following commands: adb shell wm density 240 or adb shell wm size 800x480 I get error: /system/bin/sh: wm: not found. Why? How can I resolve that? I should mention that my device is rooted and its model...

HTML automatically resize button and font size for phones in a form box

html,css,button,resize,autoresize
So I'm still trying to get the hang of html and css, so it could be what I want to do needs a completely different approach. So right now when I view my website on my phone the form will auto resize, but my button currently doesn't. However as you...

HTML5 Canvas how to make image can resizable by Kinetic.js?

javascript,html5,resize,kineticjs
I have add image function : $("ul#img a").click(function(){ addProduct( $('img', this) ); }); function addProduct( imgObj ){ var layer = new Kinetic.Layer(); var imageObj = new Image(); //createimage imageObj.onload = function() { var image = new Kinetic.Image({ x: stage.getWidth() / 2 - 53, y: stage.getHeight() / 2 - 59, image:...

JavaFX: java.lang.NullPointerException while trying to resize borderpane

javafx,resize,borderpane
Good evening guys, I am still at the very beginning of Java programming. My current target is to resize the top of a BorderPane during the launch of the initialization. For sure, it would be very beneficial to have a separate class that contains the static constants (like the value...

On resizing browser menu icons change it's position

css,resize
Here : http://thunderstorm999.byethost9.com/ On resizing browser, menu icons on the top right position change it's position. If I resize the browser towards left then the top right menu icons shifts to left wherease i need the icons to be at the absolute position on the top right itself. It has...

hide element based on width

jquery,resize,width,hide
I would like to hide element with class="wp-caption-text" if image size is <= 300 <div id="attachment_65209" style="width: 230px"> <a href="#" rel="lightbox[70848]"> <img src="/LCP-2015-05-31-s1.jpg" width="220" height="269"> </a> <p class="wp-caption-text">Sen. Charles Schwertner • District 5</p> </div> So far i tried using the following but no luck: <script> jQuery(window).on('resize load', function () {...

How can I resize my ViewPager depends on the size of my screen?

android,android-layout,resize,android-viewpager
I'm trying to resize my ViewPager depends on the screen size of a device. My ViewPager is at the center of screen and has only a width of 300dp. I want my ViewPager height to resize depends on the screen size. Underneath of my ViewPager it has a ImageView, this...

JavaFX: How to resize button containing svg image

java,svg,javafx,resize
I want to place a svg image inside a button, and then I want to be able to resize the button to any size. First, this is how I've done the loading and placing of the svg image inside the button: SVGPath svg = new SVGPath(); svg.setContent("M87.5,50.002C87.5,29.293,70.712,12.5,50,12.5c-20.712,0-37.5,16.793-37.5,37.502C12.5,70.712,29.288,87.5,50,87.5 c6.668,0,12.918-1.756,18.342-4.809c0.61-0.22,1.049-0.799,1.049-1.486c0-0.622-0.361-1.153-0.882-1.413l0.003-0.004l-6.529-4.002...

How to fix aspect ratio of a kivy game?

python,layout,resize,kivy,aspect-ratio
I've started playing with Kivy, but I'm rather new to all this and am already struggling. I'm trying to make a board game - I want the window to be resizeable, but I don't want resizing the window to mess up the aspect ratio of the game (so in other...

Growing BorderPane based on child's Textnode content in JavaFX

3d,javafx,resize,2d,textnode
I have a problem figuering out what the best procedure would be, to have a growing and shrinking BorderPane. I want to try and enlarge or shrink the Pane horizontally, based on a Text node child it has (with changing text length). There are some additional constraints / problems that...

How to dynamically control auto-resize components in Java Swing

java,swing,user-interface,resize,autoresize
Creating a new GUI in Java (1.8) Swing, I am searching for a way to override resize behavior of all my components. Let me explain to you with some edited photos: 1. Full Screen GUI This is my full screen GUI, with 3 panels and a JToolBar. The green one...

Change size of Panel in Scrollpane

java,resize,jpanel,scrollpane
So i want to resize a panel thats embedded in a JScrollPane. But it works just one time. Here is my simple code. public void setSizeKarte() { karte1.setSize(karte1.getWidth()+100, karte1.getHeight()+100); } karte1 <- Panel embedded in ScrollPane But I tried things like revalidate. Nothing works. Some hints? ...

Codeigniter upload file and resize

codeigniter,upload,resize
I'm trying to resize pre-uploaded images and then send them to another server with FTP, but it doesnt seems to be working. The uploading is working fine, the ftp is working fine too but whenever I download the image and check the size it's just the same as the uploaded...

How do I remove overflow characters or append characters in a given string in C?

c,arrays,string,resize
I basically want to have an arbitrary length string but a fixed size output string. So if I assign x a string of 10 characters, I want to end up with a string of 5 characters at the second printf. And if x is 3 characters, I wanna add on...

How to hide left part instead of right part of a WPF datagrid column when resize it?

wpf,datagrid,resize,datagridtextcolumn
I have a DataGridTextColumn that show list of batch download URLs. These URLs have same begin part, only different at the end. They are too long to display, so I resize this column by drag column header. Problem is it hide the right part of these URLs, while I want...

How to resize WorldWind Panel?

javafx,resize,worldwind
I want to put a WorldWindowGLJPanel into a Pane, and I want to make it resizable, but I can't, even when I call resize or setSize method. Here's what I'm doing : wwd = new WorldWindowGLJPanel(); wwd.setPreferredSize(new java.awt.Dimension(300, 300)); wwd.setModel(new BasicModel()); swingNode = new SwingNode(); swingNode.setContent(wwd); wwdPane = new Pane();...

Extjs5 Textarea Resizing

resize,textarea,extjs5
I have the following form defined: Ext.define('Admin.view.messaging.MsgDataForm',{ extend: 'Ext.window.Window', xtype: 'msgdataform', title: 'Compose Practice Message', defaultFocus: '[name=subject]', modal: true, layout: 'fit', closable: false, width: 700, items: [{ xtype: 'form', layout: 'anchor', fieldDefaults: {labelWidth: 60,labelAlign: 'right',anchor: '100%'}, padding: 10, items: [{ xtype: 'fieldcontainer', layout: 'hbox', fieldLabel: 'Date', items: [{ xtype: 'datefield',...

Best way to resize top banner images (viewport/html)

javascript,html,css,image,resize
I'm trying to find a better way to resize top banner images, creating different images that fit according the viewport orientation and viewport size without the image be "cutted" or distorced. I created the following code (css + js), and I would like to know if is the proper way,...

Resizing accessoryInputView?

ios,resize,inputaccessoryview
I have tried and failed to resize a UITextField that resides inside an UIView, that is set as the inputAccessoryView of that text field. Now I have been trying to get the resizing to work. When the user enters text of 2 lines or more, the textfield should resize, and...

JLabel - Cutting Off The Top of Image

java,swing,resize,icons,jlabel
in my new Java project I have a JFrame in which there is a JLabel set to North with BorderLayout, and below it is an image. The image fits fine on the JFrame, but the JLabel cuts off the top of it. How can I resize this JLabel? I tried...

How to move Right aside div above Left content div

css,css3,responsive-design,resize
I have two divs, a main left content and a right aside. With a media query (as screen gets smaller), I want the left content div to move down and allow the right aside div to move above it. Here's what I currently have... HTML: <div id="content">content</div> <div id="aside">aside</div> CSS:...

Calculating scale and position for stretching an object sideways

c++,resize,geometry,transform,scaling
I'm trying to implement object stretching through the use of a selection bounding box, in 2D orthographic views of 3D space. The type of effect I'm trying to get is like when an object is surrounded with a selection marquee, and the sides and corners can be pulled to change...

Making JPanel dynamically fit into JDialog

java,swing,resize
I have a JPanel that is returned from a class and then a button is added to the bottom of it in a new panel. The code is this: String csv = csvName.getText(); String csvN = (String)ss.getSelectedItem()+csv+".csv"; JPanel f = T1Data.program(csvN); JDialog desktopFrame = new JDialog(); desktopFrame.add(f); desktopFrame.setModal(true); desktopFrame.setSize(900, 500);...

Resizing div on drag

jquery,html,resize,drag
I have a div element which i need to resize on dragging the border. I pasting the code below. Everything is working fine but as i increase the height the position of elements below the dragged div stays static and the dragged div overlaps them. var cmd = false; var...

Resize ALL images in WebView with Text Autosizing

image,webview,resize,width
I have a webview set up as: WebView wv = (WebView) findViewById(R.id.display_post_activity_content); wv.getSettings().setLoadWithOverviewMode(true); wv.getSettings().setUseWideViewPort(true); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { wv.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING); } else { wv.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL); } wv.loadDataWithBaseURL("", content, "text/html", "UTF-8", ""); content is static HTML, with some inline CSS. No...

Matlab make half of the image blank

matlab,resize,imshow,imread
Got an issue on matlab, trying to make half of the image blank without resizing to it. ATM im using that simple code im=imread('spinpie.bmp'); n=fix(size(im,1)/2); A=im(n+1:end,:,:); imshow(A) And im geting this: What is actually i need to have is something like this: Ty...

Update size of content slider on resize in bxslider

javascript,jquery,resize,bxslider
I am working on a full screen content bx-slider which is mix of text and images inside the slides with 100% height but somehow i dont know what is the problem its facing on resize. I am using this code:- $(function() { var eleSlider = $('.main-slider'); var callSlider = eleSlider.bxSlider({...

swift change height of UIView

ios,swift,uiview,resize
Turned off auto layout for the view. However this doesnt work. I have no restraints regarding height. Only width that equal parent views width. @IBOutlet weak var questionTextView: UITextView! override func viewDidLoad() { var newFrame = CGRectMake(0, 0, 300, 202) questionView.frame = newFrame } ...

VBA excel: update rowsource for combobox control by resizing range

excel-vba,combobox,resize,range
I am trying to make an VBA update rowsource routine for a series of 3 combobox controls in a userform. The three comboboxes all reside in a frame named "frm1" The rowsource of the comboboxes are three seperate columns in a worksheet. The worksheet are named "options" and the top...

jQuery doesn't start after the page has loaded even with a classical (document).ready

javascript,jquery,css,resize
Hello guys I have a little problem that seams to me : I've got this page : maelmayon.fr/teddy.php When you resize it everything goes well as i want it to be. But i'd like it to work too on the first glance at the page. The user should not have...

Issue with jQuery resize for responsive

jquery,responsive-design,resize,prepend,appendto
I am working on a header for a new site and am having a few issues with using jquery (in combination with media queries) for responsive. My client wants the header to respond to both breakpoints but also as the window is manually resized. Certain elements are hidden and shown...

Check page width then apply css in jquery

jquery,if-statement,resize
I am trying to get jQuery to check the window width on resize. If the window is greater than 960px I'd like to apply display: block; inline style to the class .main-navigation. This is what I have so far but I can't get the syntax right. jQuery(window).resize(function($) { if ($(window).width()...

Resize a TLayout according to the number of labels in Firemonkey

layout,resize,height,firemonkey,tpanel
here is my sample code in Firemonkey; var f: integer; Label1: TLabel; MyStringArray: TArray<String>; Panel1: TPanel; Layout1: TLayout; begin Layout1.Align := TAlignLayout.Client; MyStringArray := ['aa','bb','cc','dd','ee','ff']; f:= 10; Layout1.BeginUpdate; for i := 0 to length(MyStringArray) - 1 do begin Label1 := TLabel.Create(Self); Label1.Name := 'Label' + i.ToString; Label1.Text := 'Label_' +...

Ember - Resize DIV on load, transition and resize?

jquery,ember.js,resize
I'm building an Ember app that needs to size a container DIV to be full window height on load of the application, and then run the same resize function again when transitioning to a new route, and then also on window resize. On a normal site, I'd do this: var...

Why is my array of struct not resizing with Array.Resize?

c#,arrays,struct,resize,streamwriter
I have an array of struct's declared as public struct classMates { public string first; public string last; public string ID; } I am using StreamReader to read in a .txt file and my variables correspond to their relevant value. ie. first == first name, ID == phone number. My...

I need help on how to get a lower sized string from a bigger string? in C

c,arrays,string,resize,overflow
My problem could also translate to stopping a buffer from overflowing; 1st strategy char first[40]; char g[] = " Level %d %d Fruit %d:%d "; char d[41] = {0}; strncpy(d, g, 40); if(strlen(d) < 40) { for(i = strlen(d); i < 40; i++) { d[i] = ' '; } }...

Reset zooming in (pinch) android tablet browser (google chrome) using javascript, html

html,google-chrome,resize,zoom,tablet
On a html page opened with google chrome on android tablet, i need to catch that user has done some zoom in (pinch in) and reset it to default after some seconds. (zoom out to default screen size. but i do not want totally prevent zooming, i want allow it,...

Resizing JFrame to fit JPanel

java,image,swing,resize
I have a GUI, which consists of a JFrame and Menu bar. Inside the JFrame is my custom Panel (extending JPanel), which is initially hidden. The user chooses an image (JFileChooser), this image is passed to the panel and drawn (using paintIcon). The panel is resized to fit the image...

Constraining HandsOnTable to the size of its parent container

resize,handsontable,sizing
I realize this is a simplistic example, but I wanted to get some explanation on how HandsOnTable expects to behave within a container. e.g. we have a Tab where we place HoT and we'd like it to consume 100% of the container space, but right now it doesn't appear to...

Stop table cell from adapting to true image size

html,css,image,resize,image-resizing
It's interesting how a table cell won't adapt to your resized image when you resize it by percentages. If you resize it with absolute values, it does the job. Is there any solution to this? Let's say we have an img with 200px width. Now, 2 code scenarios. First: <td><img...

SDL2 resize buggy in Fedora 21 but fine in windows

c++,linux,resize,fedora,sdl-2
I'm building a cross platform C++ OpenGL game using SDL2 as the window manager, and I recently discovered that resizing the window has some strange issues in linux. Other windows like Terminal work fine for resizing. It may also be worth noting that Fedora is in a VMware Virtual Machine....

Resize an ImageIcon for an JLabel

java,image,swing,resize,imageicon
I created a class called VainillaImagen: public VainillaImage(String url){ this.icimg=new ImageIcon(url); this.imagen=new JLabel(this.icimg); this.imagen.setVisible(true); } and then I created a methos called setDimensions that use another method called resizeVainillaImg. But the resizeVainillaImg method dont work any ideas why? public void setDimensions(boolean wRel,int width,boolean hRel,int height){ Dimension dimPantalla = Toolkit.getDefaultToolkit().getScreenSize(); int...

AutoLayout for UICollectionView Cells

objective-c,iphone,resize,autolayout,uicollectionviewcell
I have an uicollectionview in my app which shows the photos from the camera roll (using AssetsLibrary) in small square cells by using an uiimageview. My problem is that it all looks fine on an iPhone5/5S but there is huge spacing between the cells when running it on an iPhone...

How much a window is resized in jQuery?

jquery,css,google-chrome,resize,height
Is there a way to trigger an event in jQuery only when someone resizes a window more than like 50 pixels? I want to prevent events from triggering when scrolling on mobile browsers. The scrolling tends to resize the window and cause some glitches. I've looked into debounce functions, but...

PHP fit any size image to 16:9 aspect ratio

php,resize,crop,ratio,aspect
Good noon, I'm currently trying to understand how i can crop image already loaded on server with 16:9 aspect ratio. For better understandig, if I have 4:3 image i have to cut top and bottom image portions to fit it into 16:9 ratio. Thanks....

Resize a UITableView

swift,uitableview,resize,frame
I have a Tableview with above it a Segmented Controller. Based on a previous user action, this segmented controller is either hidden or shown. If it's hidden, I'd like to resize my tableview, so that it looks nice (else I have an empty gap on the screen). I tried the...

Update angular service variable on window resize

javascript,angularjs,resize,angularjs-service
I am trying to update a service variable on resize. The update doesn't seem to be registered by the controller, even though I'm using angular.element to bind the event. The initial setDevice() works, but on resize when I log the Device service on window resize from the controller there is...

Setting Full Width to WPF Image in C#

c#,wpf,design,resize
I'm trying to reduce my window size to 70%, in which there will be an image that will be stretched for 100% width and 30% (below the image) height, in which there is a stack panel containing some controls. <Window x:Class="CapManageR.Video" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Video" Height="500" Width="1000" Loaded="Window_Loaded" Closing="Window_Closing"> <Grid Name="grid1">...

How can a predefined width be set of columns by colResizable

javascript,jquery,resize
I would like to know that how can predefined column width be set with colResizable. $("#sample").colResizable({ liveDrag:true, gripInnerHtml:"<div class='grip'></div>", draggingClass:"dragging", onResize:onSampleResized }); Here how can I set different width for different columns...

CSS or JQuery responsive 'image fill div' with a catch

jquery,css,image,resize
I am trying to replicate a very neat method of resizing images and filling a div for responsive design. Basically, the following happens. On resize, images resize to perfectly fill the parent div while maintaining equal margin between each image. Once div gets too small, images overflow (as one does...

PHP Image Resize with the given scale

php,image,resize,image-resizing
I have a JQuery plugin for image cropping in the browser. its working the problem is i don't understand this "scale" part. Original Image Size: 640x640 Jquery guillotine plugin result data: { scale: 0.9, angle: 0, x: 10, y: 20, w: 400, h: 400 } I'm confused about the scale....

Trouble centering and dynamically resizing image using jQuery

javascript,jquery,html,image,resize
Usually I'm able to figure things out given enough time (hence my first post here), but I've been beating my head against the wall for a while now on this one. I'm trying to: Center image using jQuery (it's an <img> tag, not background image on a <div>), Load the...

WPF resize portion of GUI with seperator

c#,wpf,xaml,user-interface,resize
I'm creating a WPF GUI and I would like to have a section that I can manually resize the width, similiar to the way most IDEs have explorers and toolboxes that you can resize. Currently I am using a DockPaneland my project looks similiar to the image below. How would...

How would you resize a image/gif in either CSS or HTML?

html,css,image,resize,gif
How would you resize a image/gif in either CSS or HTML? I want the image to still be proportional and I want the gif to be about the size of the google logo on google.com, how would I do that? CSS or HTML is fine....

qlineedit auto resize to content

qt,resize,qlineedit
I'm trying to do a small widget with a lineedit and a pushbutton. If the button is clicked, it should open a filedialog where I can select a file. The file name should then showed in the lineedit. Here is what i got so far: #include "widget_openimage.h" #include <QFontMetrics> Widget_openimage::Widget_openimage(QWidget...

Controlling JavaFX ToolBar size when adding / removing items

javafx,resize,toolbar
I am using a BorderPane to place 4 toolbars at all the cardinal points i.e. top, left, right, bottom. When a toolbar expands to accept its 1st item, this growth does not revert when the toolbar becomes empty. I'd like it to shrink to its initial state when it nothing's...

Changing size of new figure window on Matlab

matlab,user-interface,layout,resize,figure
I am making a GUI to plot spectra using Matlab. I have included a button to save an image of the plot using this simple code: fig=figure; h=handles.axes2; copyobj(h,fig); But when the new figure opens up it only shows part of the plot I can resize the new figure manually...

Oracle XE data limit reached - how to reduce tablespace size?

oracle,oracle11g,resize,tablespace,data-files
I have an Oracle XE database with several tablespaces. One of these is used to store image data, and this tablespace has grown to a huge size. We decided that we didn't need to the images any more so deleted them all. This has freed up a lot of space...

Python Tkinter Scrollbar Shaky Scrolling

python,canvas,tkinter,resize,scrollbar
Introduction: My Python Tkinter application is designed to have a scrollbar on the side so that if the window is resized, the application can still be viewed via the scrollbar. I do this by putting a frame with all my content inside a canvas, with a scrollbar controlling the canvas....

How to change image size based on the element's distance in javascript

javascript,resize
I'd like to draw a line that connects two circles, but when the window is being re-sized, the distance between the two circles changes therefore the height of the line image should change accordingly. Here is what I have now but it only does it once when the page loads,...

HTML / CSS image resize proportion

html,css,image,resize
I want linked images to have the size 800x600 with the original proportions. The linked images could have the site 1000x400 or for example 600x1000. At this time I resize the image with width=800px and in the class div overflow is hidden <div class="cut"> <img src="www.example.de/image" width=800px> </div> This works...

Make GWT Flextable column resizeable

gwt,resize,flextable
I'm trying to make my flextables columns resizeable. So the user can decide how width a column should be. One solution is to use css resize property but this doesn't work in IE. Does someone has an idea how to make this working in IE? My idea was to catch...

Javascript injection overriding CSS for responsive slider

javascript,jquery,html,css,resize
I'm using Cycle Slider by Malsup and I'm having some trouble with the injection of inline CSS styles. If you navigate to http://cirrusfitness.com you will see I have the slider working and functional. The ISSUE comes into play when you resize the browser to test for responsiveness. It appears after...

Reduce a php background image with CSS

php,css,background,resize
The image has the right size when the display is bigger than 320px. However, if I use a smaller display, the Background image in the circle won't resize and I will loose part of the image under the smaller circle. .ch-grid-variant li { width: 220px; display: inline-block; margin-bottom: 40px; position:...

FlowLayoutPanel shows horizontal scroll bar with inner panel's width being the same as client size width

c#,resize,scrollbar,flowlayoutpanel
I'm experiencing a problem with FlowLayoutPanel while its children being resized on FlowLayoutPanel's ClientSizeChanged event. I'm trying to make the children resize horizontally when the FlowLayoutPanel resizes. The problem is that even tough the margin of the child is 0 and the padding of FlowLayoutPanel is also 0, after the...

Picturebox Height/Width using textbox…How?

textbox,resize,height,picturebox,weight
I want to control picture using textbox and button for submit, but ... private void button_Click(object sender, EventArgs e) { int height = int.Parse(textbox1.Text); height = PublicImage.Height; int width = int.Parse(textbox1.Text); width = PublicImage.Width; } ...

iOS 8 Form Sheet Modal Dialog Resizing After Display

objective-c,ios8,resize,modal-dialog
I work on an application where it shows a modal popup by performing a segue using the form sheet modal style and then a horizontal flip animation. In iOS 7 made the form take up the correct screen size by calling: self.view.superview.bounds = CGRectMake(0,0,300,300); for example and this set the...

How to fix DIV height when resizing width? Mobile/Table/PC browser compatible

css,resize,height,width,percentage
I have a trouble about % width and height: I would like to give every sizes in percentages (mobile, tablet, pc browser, etc. compatibility) but when I resize the browser WIDTH that causes the HEIGHT to be resized too FOR ALL ELEMENTS. How to stop height modifying when height isn't...

resize() on a textarea doesn't detect manual resizing only programatical

jquery,resize,detect,manual
a textarea needs to do something when it is resized either manually (is has style resize:both) and when it is resized programmatically. It works fine programmaticaly, but not when user manually resizes. textarea.resize( function(tn,newh,scroll){ console.log('resize'); ....... ); }); I read something about that there was a bug in JQuery, with...

Resize/show/hide adview from another view

android,layout,resize,admob
Iam developing a simple game that it has some gamestates (paused, playing, playerlost, etc...). And iam trying show a adview(admob) like that: paused -> Show ad as banner. playerlost -> show as fullscreen. playing -> hide the ad. MainActivity: public class MainActivity extends Activity{ private tGame game; //(...) layout.addView(game); layout.addView(admob,...

jQuery draggable clone size while dragging

jquery,resize,clone,draggable
I'm developping a drag-and-drop application. I have a droppable container and draggable. $( "#dragshock" ).draggable( { helper: "clone", cursor: 'move', drag: resizeContainer } ); The function called by drag is this one: function resizeContainer(e, ui) { var defaultSize = 108; var factor = ((ui.position.top)/19); var correcteSize = defaultSize + factor;...

Cannot construct tkinter.PhotoImage from PIL Image

python,tkinter,resize,python-imaging-library,resize-image
I try to show a image in a label when I push a button, but the image are too large and I have tried to resize the image. I have created this function: def image_resize(imageFile): width = 500 height = 300 image = Image.open(imageFile) im2 = image.resize((width, height), Image.ANTIALIAS) return...

InDesign Applescript Resizing Placed Images

resize,applescript,indesign
Please explain how to make applescript understand I want to select all images on the active page (which in my case are going to be one), to resize the image and fit frame to content. tell application "Adobe InDesign CS6" set myPagecount to count pages of active document repeat with...

Owl Carousel custom thumbnail background image disappears on window resize

jquery,resize,thumbnails,carousel,owl-carousel
I made a custom thumbnail for my owl carousel. The thumbnail is the pagination dots of the owl carousel, I just styled it so it will look like a thumbnail, and I put the images in the thumbnail as background image. My problem is whenever I resize the browser, the...

Resize textField Based On Content

ios,swift,resize,textfield
How can a textField be resized based on content while using auto-layout in an iOS application written in Swift? The text field will resize as necessary to fit its content when the view loads as well as while the user is typing. Ideally, the text field would stop resizing at...

Content automatically Hides when window re-sizes bootstrap

css,twitter-bootstrap,resize,window-resize
The following dives hides automatically when window re-sizes. Everything seems right. Only the images shows. The image is a background image. <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="item active"> <img src="img/lines1.jpg" alt="First slide"> <div class="header-text hidden-xs"> <div class="col-md-12 text-center"> <h2 style="font-size: 50px;"> <b style="color:white">Welcome to <i>We</i><b...

Transfer content from one DIV to another whenever window resizes

javascript,jquery,html,css,resize
I am trying to transfer some content from one DIV to another whenever browser window resizes to a specific size or less. This is my code: $(function () { function transferContent() { if ($(this).height() < 500) $(".target").html($(".source").html()); } $(window).on("resize", transferContent); }); And this is the fiddle: https://jsfiddle.net/76yjw0rs/ Please tell me...

Resize/Change Figure Axis Range in Matlab

matlab,resize,matlab-figure,figure,axes
I have a button in my Matlab GUI to open up an axes plot in a new figure, here is my code: fig=figure; set(fig, 'Position', [100, 100, 1049, 895]); h=handles.axes2; copyobj(h,fig); set(gca,'units','pix') set(gca,'units','norm') However, the axes is quite small in the new figure: But when I try to add this...

Wrap pygtk Window after destroying widgets

resize,widget,window,pygtk,wrap
I'm creating an app using pygtk with different mode: mode "normal" which use a PathBrowse and a ComboBox mode "append" which destroy the PathBrowse and the combo in the Window and add others like CheckBox and Labels But in append mode, the fact of destroying widgets bigger than the new...