Skip to content

DoResize() function in skoot/usr/Theatre/data/www/Art.sam has hard-coded values. #117

@AnthonyHJ

Description

@AnthonyHJ

Current version:

function DoResize() {
     var winOffsetWidth = document.Art.width + 12;
     var winOffsetHeight = document.Art.height + 31;
     window.resizeTo(winOffsetWidth,winOffsetHeight);
 } 

A possible better version of the function would be something like:

function DoResize() {
    var winOffsetWidth = (2 * document.Art.width) - window.innerWidth;
    var winOffsetHeight = (2 * document.Art.height) - window.innerHeight;
    window.resizeTo(winOffsetWidth,winOffsetHeight);
 }

I think that does what it is meant to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions