0

Can increase size of Progressbox

asked 2014-05-30 12:13:18 +0800

anujtarun gravatar image anujtarun flag of India
205 6

updated 2014-05-30 12:38:32 +0800

sitansu gravatar image sitansu
2254 13
http://java91.blogspot.in...

Can we increase size of progressbox

delete flag offensive retag edit

Comments

no dear i have checked it before posting ..

anujtarun ( 2014-05-30 13:10:21 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-25 15:25:56 +0800

Darksu gravatar image Darksu
1991 1 4

Hello anujtarun,

You can modify the size of the Progressbox by adding the following entry into your zk.xml:

<device-config>
        <device-type>ajax</device-type>
        <timeout-uri>/timeout.zul</timeout-uri>
        <embed><![CDATA[
            <script type="text/javascript">
                zk.afterLoad("zk", function () {
                    var oldProgressbox = zUtl.progressbox;
                    zUtl.progressbox = function () {
                        oldProgressbox.apply(this, arguments);
                        var $mask = jq('.z-loading');
                        if ($mask) {
                            var $img = jq('.z-loading-indicator'),
                                $body = jq(document.body),
                                body = $body[0],
                                bw = 300;
                                bh = 300;

                            // update mask and image's style
                            $mask.width(bw);
                            $mask.height(bh);
                            $mask.css('opacity', .75);

                            $img.width('300px');
                            $img.height('300px');                                                       

                        }
                    }
                });
            </script>
        ]]></embed>
</device-config>

Another method would be to create a custom window component in order to use it as a progressBox.

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-05-30 12:13:18 +0800

Seen: 10 times

Last updated: Jul 25 '14

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