I am coding a Trello power up.
I want to display a burndown in a popup but the popup window is too small.
I tried to resized it with this code:
callback: function(t) {
return t.popup({
title: "Estimation",
url: 'burndown.html',
width: 1000,
height: 600,
});
},
The height is resized but not the width.
Someone have an idea to resolve the problem?
Thanks
Hi Eliaou,
Unfortunately, the popup control only allows you to alter its height, not its width. I've gone ahead and updated the documentation for it to make that clear: https://developers.trello.com/v1.0/reference#t-popup
However, there might be other controls that would work better for your case. Power-Ups can also open modals, which have two widths, one roughly the width of an open card, and the other gets the full screen width: https://developers.trello.com/v1.0/reference#t-modal
There is also a control called a board bar that lets you get a full width display at the bottom of the board, and you control the height with some limits to not cover the whole board: https://developers.trello.com/v1.0/reference#t-boardbar
Hopefully that helps. Best of luck with your Power-Up. We also have an open Slack community with a channel just for developers that you might be interested in joining: https://trellocommunity.slack.com/messages/C67S4FY4T/
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.