Re: [PATCH spice-html5 1/2] Always show debug console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 23 May 2017, at 10:44, Tomáš Bohdálek <tom.bohdalek@xxxxxxxxx> wrote:
> 
> Meansure for better display screen with console.

Not sure what “meansure” means? Is that a typo? 

> ---
> resize.js | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/resize.js b/resize.js
> index f5410d3..b572de7 100644
> --- a/resize.js
> +++ b/resize.js
> @@ -33,17 +33,17 @@
> function resize_helper(sc)
> {
>     var w = document.getElementById(sc.screen_id).clientWidth;
> -    var h = document.getElementById(sc.screen_id).clientHeight;
> -
>     var m = document.getElementById(sc.message_id);
> 
>     /* Resize vertically; basically we leave a 20 pixel margin
>          at the bottom, and use the position of the message window
>          to figure out how to resize */
> -    var hd = window.innerHeight - m.offsetHeight - m.offsetTop - 20;
> +
> +    /* Show both div elements - spice-area and message-div */
> +    var h = window.innerHeight - m.offsetHeight - m.clientHeight - 20;
> +
> 
>     /* Xorg requires height be a multiple of 8; round up */
> -    h = h + hd;
>     if (h % 8 > 0)
>         h += (8 - (h % 8));
> 
> -- 
> 2.9.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]