473,782 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE 6 zoom property and SELECT elements

Hi! I'm doubtful there's a workaround for this problem, but it's
worth a shot. I'm using IE's (css) "zoom" property to zoom the body
of a document (in conjunction with persistance so the previously
selected percentage level is restored each time the page is reloaded).
I don't expect zoomed images to look perfect, but overall the quality
of the zooming is pretty good (as good as Opera's ;-) EXCEPT for any
<select> elements, which are messed up.

Zooming a dropdown select element to less than 100% doesn't harm it
much, but at just over 100% the height of the dropdown list "shrinks"
to make the items inside unreadable. In fact, apart from this, IE
seems not to do anything with select elements in a "zoomed" body - the
height and width of the select element doesn't change, nor does the
size of the text of options inside it. I attempted a script to "fix"
any <select> elements in the page by:

-- explicitly zooming the select element itself: this does make the
height and width of the element change but nothing else
-- looping through all options inside the <select> to set the zoom:
still not usable. Although this doesn't affect the size of the text
for individual options, the options at least become readable, even
though the list height is still too small (you can scroll them).

It doesn't matter if the select is a dropdown (size=1) or a listbox -
IE doesn't zoom them with the rest of the page. As far as using style
properties on the individual option elements, there seems to be a
limited number of properties that actually work: font color,
background color, italic.

Has anyone here ever found a workaround that would make a <select>
element readable for zoom percentages over 100%? Is this a
"documented " limitation of using the zoom property? Does anyone know
what is "special" about select boxes that would account for this
limitation? (I remember that with visual basic controls, comboboxes
and listboxes are technically separate "window" having they're own
handle)

I'm not keen on having to choose between including a "page zoom" and
using <select> elements. I've tried pop-ups for lists, and I can zoom
these, but this is more work than it's worth in many instances.

Any kind of information is appreciated, as I could not find mention of
this anywhere searching Google Groups.

--- Francis
Jul 20 '05 #1
0 4071

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

Similar topics

4
6524
by: stef | last post by:
Hello: I am trying to design a web page whose graphics content would change according to the "text Zoom" settings of the user. (Basically the goal is to use mathematical symbols that automatically resize in response to zoom events). Is it possible to detect a zoom change event? Stefan
10
4405
by: Deano | last post by:
I think that just about sums it up. Is there a fix/workaround for this?It's quite annoying behaviour and not user-friendly.thanksMartin
3
5143
by: Just Me | last post by:
Using a Richtextbox I use EM_SETZOOM to set a zoom factor. If I set it to 2 the image on the screen increase but not exactly by 2. I've coded a ruler above the Richtextbox which does scale by the correct amount. Could it be that the Richtextbox uses GDI while Dotnet uses GDI+ ? Can anyone shed any light at all on this?
2
12684
by: Mo Ade via .NET 247 | last post by:
How do I write code to include a zoom feature in my project so that when my Vb Form loads an image I can click in my main menu zoom in or zoom out? -------------------------------- From: Mo Ade ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>6aW7IUJA+0CCEGJ4S8DRuA==</Id>
1
1682
by: Ricardo Furtado | last post by:
I've been with a problem for about two months and i've bought books and search the internet for an explanation, and haven't found one. I'm developing a cephalometric software, that needs to capture an image from the scanner, mark the image with dots in order to find distances and angles. Everything is ok except when i try to zoom in/zoom out the image. Every calculated angle and distance becomes variable because when i use the zoom the...
3
4752
by: Keith G Hicks | last post by:
In MS Access image controls there's a property setting for "Size Mode" --> Clip, Zoom or Stretch. I don't see any similar property in an asp image control. When I have an image on a page, it seems to Stretch no matter what. If an image is displayed that has different proportions than the image control itself, the image is distorted. I need a "Zoom" setting (not to zoom in and out). How can this be done? Thanks, Keith
4
24863
by: Yoshitha | last post by:
I'm developing windows application using c#.net (vs 2003), i've placed several images (picture boxes) in panel control and i want to zoom the panel control so that the images and text which contained in the panel control has to be zoomed and i want to work on that zoomed portion like we work in photo shop by zooming the image. can anybody tell me how to do this one using gdi+, or suggest me with some articles which suies my...
0
2033
by: gplana | last post by:
Hi all. I'm trying to create an application with a RichTextBox control in order to let user introduce a formatted text, and then I generate a word2007 .docx document with that text. I added the functionality to zoom in/out in this RichTextBox, sending the EM_SETZOOM message to it. The problem is that if I just send the message, the .SelAlignment = rtfRight goes out of the control. To solve that, I tried to set the .width property...
0
2626
by: Blacky | last post by:
hi, I have a form where in i dropped a crystal report viewer.I created a report sample.rpt and this is the code which binds my report to the viewer. If (Session("rep") Is Nothing) Then LoadReport() Else
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10311
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.