473,395 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Repaint method

Hi!

I am experiencing some rendering problems when dynamically changing CSS
(width) with both Internet Explorer and Firefox.
In some cases it is just in IE and in other cases just Firefox.
When resizing the browser (1px is enough) everything is positioned
correctly again.

Is there some repaint method that I can call?
Dec 15 '05 #1
2 8802


Robert wrote:
When resizing the browser (1px is enough) everything is positioned
correctly again.

Is there some repaint method that I can call?


There is e.g.
window.resizeBy(1, 1);
but browser users nowdays can and do configure their browsers to
disallow script any resizing of browser windows.

Perhaps it helps to toggle the CSS display property of the element that
does not render properly.
IE has a method named refresh
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/refresh.asp>
for table element objects but I have never used that.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 15 '05 #2
Martin Honnen wrote:


Robert wrote:
When resizing the browser (1px is enough) everything is positioned
correctly again.

Is there some repaint method that I can call?

There is e.g.
window.resizeBy(1, 1);
but browser users nowdays can and do configure their browsers to
disallow script any resizing of browser windows.


Yes, I don't think it's a good idea, because I don't really want to
resize. I just want to trigger the "repaint" event that is triggered by it.
Perhaps it helps to toggle the CSS display property of the element that
does not render properly.
Hmm I could try and play with that. Maybe turning the display of the
whole body on and off will help.

IE has a method named refresh
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/refresh.asp>

for table element objects but I have never used that.


This actually made it worse :)

Dec 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ike | last post by:
I changing the size of frames dynamically in a page (I am restricted in that I cannot perform a reload of the content of any of the frames). In MSIE, when I resize the frames, thinks repaint...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
4
by: Bob | last post by:
Trying to repaint a form named fcon using a new filter: 'Repaint the form with the new data Forms!fcon.FilterOn = False Forms!fcon.Filter = "RecNo = " & currecno & " AND Currentvalue = -1"...
7
by: Tamir Khason | last post by:
Is there something RePaint event? I have a couple of controls where I draw using control.CreateGraphics, BUT when I lost focus or do something inside the contorl (click ,etc) all graphics are...
2
by: user | last post by:
Hello i have PictureBox p1: p1.Paint += new PaintEventHandler(MyFunction); .... public void MyFunction(Object Sender, PaintEventArgs e) and it works fine but: when i call: p1.Refresh(); ...
2
by: aaron.kempf | last post by:
hey guys i have an ETL winform in VB 2005 and it's like-- off in la-la land. i know it's doing things-- it's happily crunching away. but i'm confused about what i need to do to make the main...
0
by: philaphan80 | last post by:
Is there a way to force the Visual Studio IDE (Page Control at design- time) to refresh / repaint itself upon drag & drop of *any* item from the toolbox? Perhaps a method I need to override within...
3
by: linuxadmin | last post by:
hello! i want to be able to repaint a class, derived from a form, by myself. it works automatically, when i do: protected override void OnPaint(PaintEventArgs e){ base.OnPaint(e); Graphics...
0
by: milkay | last post by:
<I have code that uses 2 images> the program creates a window and then when u press play, it removes all components in the container. then, i add a NewPanel object. i add mouse listeners and all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.