0

Inserting Rows in Spreadsheet - Element's height not adjusting

asked 2013-06-07 19:39:16 +0800

sisb gravatar image sisb
1 1

updated 2013-06-07 22:55:37 +0800

When I click a button to add a row in ZK Spreadsheet, the div element after the ZKID-cave element isn't adjusting the size to the contents.

<div id="fS6Q0-cave" class="z-window-embedded-cnt-noborder"> 
   <div id="fS6Q1" style="width: 100%; height: 204px;"> <-- not changing

I don't know why it isn't doing this automatically on row insert. Some of my code

        private Spreadsheet zkSSheet;
            ...
        addRowButton.addEventListener("onClick", new EventListener() {

            public void onEvent(Event event) throws Exception {

                editPlanningWBSGrid.insertRow(phId, actId, eleId, comId, comments);
                //editPlanningWBSGrid.Events.sendEvent(reload, event);
                //setCellColor();

                editPlanningWBSGrid.loadUIGrid(zkSSheet);
               // System.out.println("editPlanningWBSGrid: "+editPlanningWBSGrid);

               zkSSheet.invalidate();
            }
        });

The invalidate doesn't help in any way, so what I end up having to do is send the reload event which calls a Javascript function that refreshes the page. This for obvious reasons feels cumbersome to the end users. Any solution to this? Am I missing a critical piece of knowledge?

delete flag offensive retag edit
Be the first one to answer this question!
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: 2013-06-07 19:39:16 +0800

Seen: 5 times

Last updated: Jun 07 '13

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