We came across a strange behavior in the course of creating a new theme
for our dialogs. I thought it might be worth posting to the group in
case someone else encounters the issue. After creating a series of new
png images, the window was effectively no longer draggable in IE6 (it
remained draggable in IE7 and Firefox). This had us puzzled.
 
IE6* is using the AlphaImageLoader filter to handle the pngs and using
the sizingMethod "scale". Our new images scaled perfectly visually, but
the top-draggable region was constrained to a very small horizontal
space just to the left of the ne (North East) corner image. Given the
size of this now tiny target, the window was effectively non draggable.
It turns out that the IE filter does something strange if a "scaled" png
is wider than 1px.
 
In my experience it's normally better practice to make css backgrounds
from more generous images; 1px repetitions over large areas can
noticeably impact rendering performance. And so I took my normal
approach and created a 20px wide slice. With the result that the dialog
was no longer draggable in IE6.
 
The Fix:
Cropping the n and s background images to a single pixel width made the
IE filter happy and restored draggability to the entire title bar of the
window.
 
 
*IE7 uses the standards-compliant styles in theme css and ignores the
IE-specific styles using filters because it ignores the star hack that
precedes them  (eg. * html .kdialog_w)
 
 
::Michael
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to