resizeCanvas() does not take into account the preHeader height
See original GitHub issueI have created a grid with the wollowing options:
autoEdit: false,
editorCellNavOnLRKeys: true,
enableAutoResize: true,
enableCellNavigation: true,
enableColumnReorder: false,
enableGrouping: false,
frozenColumn: 0,
createPreHeaderPanel: true,
editable: true,
explicitInitialization: true,
preHeaderPanelHeight: 25,
showPreHeaderPanel: true,
autoResize: {
containerId: $('#MyGrid')
On calling resizeCanavas(), e.g.
$(window).resize(function () {
grid.resizeCanvas();
});
the height of the grid is reduced by 25px.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Canvas sometimes does not resize to width and height
I tried to resize my canvas in Javascript below: 'use strict'; ( ...
Read more >Preheader Text Not Working - Litmus
I am running into another strange issue. This is the first time I have ever seen this, but for some reason the preheader...
Read more >What is an Email Preheader? (+ How it Boosts Open Rates)
Email preheaders, sometimes called preview text or a "Johnson box," is a small line of text after the subject line of an email....
Read more >4 Email Preheader Best Practices - Mailchimp
Email preheaders are one of the first things your readers see, so getting them right is important. Follow these tips to get more...
Read more >Using Preview & Preheader Text in Pardot to Encourage Opens
Preview and preheader text can make or break your email open rates ... that is not visible in the email body to only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have done further tests and found that I was actually “barking at the wrong tree”. The issue is with the resizer: If setting the resizer bottom padding to 0 then the grid is rendered with a bottom padding of 20px (the default). I have logged this as #504
I had to make a minor mod for it to work correctly in my scenario (inside a flex grow column height 100%): The viewportTopH does no need to include the preHeaderHeight.
Also made a change to take into account the showPreHeaderPanel value.