trueinteractions / tint-chromium

Use Chromium (chrome) as your WebView with Tint
8 stars 1 forks source link

-webkit-app-region: drag does not appear to work #10

Open JohnLouderback opened 9 years ago

JohnLouderback commented 9 years ago

The CSS property -webkit-app-region: drag does not appear to work as expect, currently as it does not appear to do anything. Can this be implemented or enabled?

trevorlinton commented 9 years ago

Hm, CEF says it supports this, i've dug into the documentation and haven't seen anything that needs to be done to enable this. I'll dig a bit deeper and hopefully something might come about.

What frame styles are you using?

JohnLouderback commented 9 years ago

Currently I'm using the follow code to style my window on Windows:

require('Common');
var $ = process.bridge.dotnet;
var win = new Window();

var winChrome = new $.System.Windows.Shell.WindowChrome;

var winChromeGlassFrameThickness = new $.System.Windows.Thickness;
winChromeGlassFrameThickness.left = winChromeGlassFrameThickness.right = winChromeGlassFrameThickness.top = 0;

winChromeGlassFrameThickness.bottom = 1;

var winChromeResizeBorderThickness = new $.System.Windows.Thickness;
winChromeResizeBorderThickness.left = winChromeResizeBorderThickness.right = winChromeResizeBorderThickness.top = winChromeResizeBorderThickness.bottom = 5;

var winChromeCornerRad = new $.System.Windows.CornerRadius;
winChromeCornerRad.TopLeft = winChromeCornerRad.TopRight = winChromeCornerRad.BottomLeft = winChromeCornerRad.BottomRight = 2;

winChrome.CaptionHeight = 35;
winChrome.GlassFrameThickness = winChromeGlassFrameThickness;
winChrome.CornerRadius = winChromeCornerRad;

win.backgroundColor='gray';
win.visible = true;

However, even in the most minimal example of a window with no styles but the out of the box one, the -webkit-app-region: drag does not work