0

Window bottom border not properly aligned

asked 2011-06-07 06:58:26 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

When I create a new Window, the bottom border sometimes looks like this: http://dl.dropbox.com/u/17844821/zeug/window_bottom_border_bug.png
See the strange light grey border at the very bottom?

After resizing the window, this problem vanished and doesn't reappear again until I reload the application next time.

What's going on here?

delete flag offensive retag edit

16 Replies

Sort by ยป oldest newest

answered 2011-07-25 05:33:48 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

Sure, just sign up for an account and then login.
In the upper toolbar menu click "New Email".
That should create a new window with the issue described.

link publish delete flag offensive edit

answered 2011-07-25 02:49:08 +0800

SimonPai gravatar image SimonPai
1696 1

valmar,

I am not very familiar with the flow of your application. Can you specify detailed steps in your website that replicates the issue?
Thanks.

link publish delete flag offensive edit

answered 2011-07-20 05:44:17 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

I'm afraid, no :-(
I already tried to replicate that issue but I failed.
All I can give you is the code that I already posted up there..

Ps: I noticed that this issue also seems to happen with other Window instances that I create (not only the ones instantiated from the code above).
But it always seems to be the very first window. If I close it and the open a new one, the issue is gone.

If you want to test it: Just go to www.smampi.com and try it out for yourself. The application is live now.

link publish delete flag offensive edit

answered 2011-07-20 02:24:53 +0800

SimonPai gravatar image SimonPai
1696 1

valmar,

Do you have a runnable test case that replicate the issue?

link publish delete flag offensive edit

answered 2011-07-13 06:54:09 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

Hm, setting a fixed pixel height didn't fix the issue.
Also, I doubt that my CSS file has something to do with this since there is only very few stuff in there:

/css/mailformular.css

div.grid_mailformular, tbody.grid_mailformular, tr.grid_mailformular{
	border: 0;
}

div.bl_mailformular{
	background: none;
}

div.wdw_mailformular div.z-window-overlapped-cnt{
	padding: 0;
}

.wdw_mailformular{
	overflow: auto;
}

link publish delete flag offensive edit

answered 2011-07-13 04:51:37 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

In your case, it looks like a timing issue when the CSS file is added dynamically and the window has a percentage size.
So, I guess if you replace the height with a precise size(like pixel) or put your CSS file in the root page, the issue may be gone.

link publish delete flag offensive edit

answered 2011-07-06 17:59:09 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

Damn... I deleted my browser's cache and tried again.
Problem wasn't fixed and still remains :-(

link publish delete flag offensive edit

answered 2011-07-06 17:51:57 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

updated 2011-07-06 17:55:55 +0800

I was able to fix this!

I first called

window.doOverlapped()
and then:
Component parent = aLabelInTheWindow;
while(parent != null){
 parent.invalidate();
 parent = parent.getParent();
}

That did the trick.

Thanks Stephan, you bumped me into the right direction :-)

Still... very weird behavior of that window..

link publish delete flag offensive edit

answered 2011-06-28 15:00:09 +0800

valmar gravatar image valmar
925 2 13
http://www.timo-ernst.net

That's interesting.
Calling doModal() really fixed the issue but it gives me a modal window (which I don't want).

link publish delete flag offensive edit

answered 2011-06-28 10:53:23 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Have a try with calling .invalidate(); before you call doModal();

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-06-07 06:58:26 +0800

Seen: 565 times

Last updated: Jul 25 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More