최근 검색


최근 검색 없음

Lag in resizing top bar

답변함


2022년 7월 29일에 게시됨

Hi,

I am resizing top bar to max size on load, however the top bar opens in small size and then goes to large size. Not sure why there's a lag of few milliseconds (good enough to be noticeable). Am I missing something. Can someone help here?  

Here's my code:

window.onload = function () {
var client = ZAFClient.init();
client.on('app.registered', function() {
client.invoke('resize', { width:'640px', height: '490px' });
});
}

0

2

댓글 2개

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Neha! The resize method does have a bit of lag to it. If you need to set the initial size when the app loads, you could just use the size property in the manifest and then there will be no lag on load. Obviously, any subsequent resizes from there would see that lag, but based on the code you're implementing above, it looks like this is just for the initial load, so I think this should work for you.

1


Hi Greg, Thanks for the quick response. It worked for me.

1


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물