![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, While using great BlockUI plugin I run into two, strange problems. 1. I set: display: none to all divs that I want to present in BlockUI, which is obvious - because I don't want these divs to be shown in normal page flow. What is not obvious and strange is that BlockUI does not un-hide such hidden elements when displaying them. I have to use for example: document.getElementById('inner-holder-error').style.display = 'block'; in JS function that brings BlockUI up. What is even stranger I have to again hide them with: document.getElementById('inner-holder-error').style.display = 'none'; because BlockUI does not hides them and they appear in page flow after closing BlockUI. 2. BlockUI is incorrectly centering elements on my page. If what should be contained in BlockUI has only one line all is OK. And it seems to display in vertical and horizontal centering. But if I try to put something more - a few lines or image. It is always incorrectly centered on screen. Even the simpliest construction as it can be: $.blockUI({ message: $('#dialog_error') } shows blockUI in incorrect position. I found out that centering on a specific element with using block instead of blockUI works fine. I nearly 100% sure that there is something wrong with my page. Because all examples on author's page works just perfectly. But I'm digging through page code for over three hours now, testing really various combinations and found nothing yet. That's why I'm asking here. Maybe someone has simillar problems? I would apperciate any comment or suggestion what should I do. Cheers, Thomas |
#3
| |||
| |||
|
|
1. I set: display: none to all divs that I want to present in BlockUI, which is obvious - because I don't want these divs to be shown in normal page flow. What is not obvious and strange is that BlockUI does not un-hide such hidden elements when displaying them. I have to use for example: document.getElementById('inner-holder-error').style.display = 'block'; |
|
2. BlockUI is incorrectly centering elements on my page. If what should be contained in BlockUI has only one line all is OK. And it seems to display in vertical and horizontal centering. But if I try to put something more - a few lines or image. It is always incorrectly centered on screen. |
#4
| ||||
| ||||
|
|
Can you post a link to this page? |
|
Is inner-holder-error the outer most element used for blocking? *For example, does your block call look like this: $.blockUI({ * * message: $('#inner-holder-error') }); |
|
The default settings are meant to handle a simple, short message. *But |
|
you can control the position of the message usingblockUI's'css' option. *There is an example on the demos page that shows how to control position with tall content. |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |