I'm using the following code to allow users to resize a DIV element vertically, but when the click and drag the handle, text and other elements on the page get selected as if the user was just clicking and highlighting everything on the page. Is there a way to prevent this from happening as this looks very bad? This is being used with ...
why doesnt this work?
//I removed the 'for loops' for a second and then the script does something, what wrong with the loops?//
var openWindows= new Array[50]();
function resize(x){
//changed boolean to var
var open = false;
for(var i = 0; i < openWindows.length; i++){
if(openWindows[i] == x){
open = true;
openWindows...
i have a blue container that is the canvas for my text. what i'm trying to do is resize the font so that the entire text fills as much of the blue container as it can.
i have access to the height of the text content, which is both paragraphs and the line in between them. also, i have the height of the blue container, the height of eac...
Hi there
I'm programming a debate-graph for my bachelor thesis with Raphael JS. point is, users can add nodes to the graph. eventually the graph gets really big and the canvas is still the same size. the canvas (in raphael js: paper) is inside another div with "overflow: scroll;", so lets ignore screen real estate
so is there a way tha...
Hello,
I'm currently working on a webpage and I'm having troubles with Firefox when I resize the browser window. Content in the "featured" div overflows when the window is made smaller. However, this is not an issue in IE 8. I have not tried any other browsers yet. Any ideas?
HTML:
<div class="slider_container>
<div id="featured>
...
What I want to do is to change the size of a window and create a window next to it so they are exactly next to each other. In that sense, I need to position to the new window to the top right part of the screen, the way I am doing it is not working (code is below), I need help :)
function () {
var viewportwidth = document.documentEl...
On jQuery resize event page it is said that:
"Code in a resize handler should never
rely on the number of times the
handler is called. Depending on
implementation, resize events can be
sent continuously as the resizing is
in progress (the typical behavior in
Internet Explorer and WebKit-based
browsers such as Safari an...
hi my dear friends :
i am so confused for setting the width and height of DIV and FIELDSET inside A RadWindow....!?
when i browse my radwindow in firefox with this code :
setTimeout(function() { GetRadWindow().autoSize(true) }, 500);
every thins is ok in ie 8 - but in firefox i have scrolls bars !
how can i remove them?
my with an...
Hi
I want to make a 8*8 table with square cells ( a chess board ).Now I have the code to make the table but don't know how to resize the cells to be square shaped.
I also want to put picturs of pieces into the cells. How should I do these?
here is the code i have:
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QHBoxL...
hy,
Let's say I want to convert an image to an exact size, eg: 400x300. The trick is, if the image, due to its aspect ratio, does not fit in 400x300, then place it in there with black borders.
A 900x1200 image would be converted down to 225x300 to retain its aspect ratio, and then given black borders left and right to make it 400x300.
...
When I open a jQuery dialog with a predefined size (say, 800x600), the iframe within the dialog is not resized properly. It appears like it has the default size. In fact, the height is OK, but width seems to stay at 300px for no reason.
I'm creating the iframe and dialog like this:
someVar = '<iframe id="some-dialog" class="window-fram...
I have a form with several controls. As soon as I add a "Bottom" anchor to a button on my form, I am no longer able to resize the form to be smaller on the vertical axis. I can still resize it to be bigger. The same thing happens in the horizontal direction once I add a "Right" anchor to any of my visible controls. Any ideas as to why th...
I have a div with contenteditable set to true to act as a text input.
Now usually, it expands as some text reaches the end of the div, but if I resize the div, this stops happening. The browser no more does this. I tried to set the height after resizing it to auto, but it didn't help either.
Please help me on that one.
Thanks.
...
I've got a photo slideshow with thumbnails. Next/Previous buttons appear and disappear based on the size of the window; if the thumbnails overflow the window size, the buttons appear. If not, they disappear. My problem is that, at times, they won't come up, or they won't come up for a couple of seconds. At other times they won't disa...
I'm trying to handle stuff on my site when the window is resized and I have ran into an issue with Chrome that I can't figure out. Here is the code, very simplified:
<script language="javascript" type="text/javascript">
window.onresize = function()
{
alert(1);
alert(2);
alert(3);
...
Hey,
Ok this is what I wish to do.
I have a resizeable window which has 3 controls in same row in flowing order: textBlock, textBox and button.
textBlock and button have dynamic texts. So theirs size depends upon text inside.
Now what I wish to do is that textBox in the middle is always filling up all empty space between textBlock a...
Hello everybody,
I'm having problems resizing a TPaintBox and drawing on it:
On my Form (named FMain) I dropped a TPaintBox (named DisplayImage), which I am trying to resize as the Form is resized.
To do that I wrote an OnResize() method for FMain (I confirmed that it's being called correctly) in which I try to resize the DisplayImage...
I'm using a script that uses DD's Ultimate Fade-in Slideshow:
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
It uses jquery, and I would like to resize the images to the slideshow size.
Thanks!
...
how do I disable resizing by dragging the edge of windows?
Here is my window creation code
bool CreateGLWindow(char* title, int width, int height)
{
GLuint PixelFormat; // Holds The Results After Searching For A Match
WNDCLASS wc; // Windows Class Structure
DWORD dwExStyle; // W...
I want to dynamically create some image from Java and save it to a file.
As I read in various tutorials, I need to use BufferedImage.
But, the BufferedImage constructor requires that the height and width as parameters. But I don't know the final size of my image. How should I create an image with size unknown in advance?
There are two ...