Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
7 subscribers
Views
1356 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, How can I open the task window(opened in popup) maximized?...
Alpert anandakumar
over 11 years ago
Hi, How can I open the task window(opened in popup) maximized?...
OriginalPostID-92554
OriginalPostID-92554
Discussion posts and replies are publicly visible
0
shelzle
over 11 years ago
Only using JS. I created a function that tries to resize the window to match the content but not exceed screen size.
function adjustWindowHeight(max) {
setTimeout(function() {
if(max == null) {
max = screen.availHeight - (typeof window.screenTop == 'undefined' ? window.screenY + 90 : window.screenTop) - 20;
}
var currentHeight = document.documentElement.clientHeight;
var neededHeight = document.getElementById("environmentContent").offsetHeight + 25;
if(neededHeight > max) {
neededHeight = max
}
window.resizeBy(0, neededHeight-currentHeight);
}, 250);
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shelzle
over 11 years ago
Put this in onload event of the form.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel