mirror of
https://github.com/taigrr/wails.git
synced 2026-04-16 19:55:05 -07:00
Compare commits
1 Commits
new-templa
...
mac-scalin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1290ca92b |
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -8,12 +8,8 @@ assignees: ''
|
|||||||
---
|
---
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
**If you have a technical issue, please do not open a bug this way!**
|
If you have a technical issue, please do not open a bug this way!
|
||||||
Please use the `wails issue` command!
|
Please use the `wails issue` command!
|
||||||
If you do not do this then the issue may be closed automatically.
|
|
||||||
|
|
||||||
NOTE: If your bug is related to Windows, make sure you read
|
|
||||||
the [Windows Developer Guide](https://wails.app/guides/windows/)
|
|
||||||
#####################################################
|
#####################################################
|
||||||
|
|
||||||
**Description**
|
**Description**
|
||||||
@@ -37,5 +33,3 @@ Please provide your platform, GO version and variables, etc
|
|||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|
||||||
- [ ] This issue is for Windows and I have read the [Windows Developer Guide](https://wails.app/guides/windows/)
|
|
||||||
|
|||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: ''
|
|
||||||
labels: enhancement
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
// Version - Wails version
|
// Version - Wails version
|
||||||
const Version = "v1.8.1-pre5"
|
const Version = "v1.8.1-pre4"
|
||||||
|
|||||||
@@ -2042,6 +2042,14 @@ struct webview_priv
|
|||||||
objc_setAssociatedObject(w->priv.delegate, "webview", (id)(w),
|
objc_setAssociatedObject(w->priv.delegate, "webview", (id)(w),
|
||||||
OBJC_ASSOCIATION_ASSIGN);
|
OBJC_ASSOCIATION_ASSIGN);
|
||||||
|
|
||||||
|
CGFloat scale = [[NSScreen mainScreen] backingScaleFactor];
|
||||||
|
printf("Scale is: %f\n", scale);
|
||||||
|
|
||||||
|
if( scale != 1.0f ) {
|
||||||
|
w->width = w->width / scale;
|
||||||
|
w->height = w->height / scale;
|
||||||
|
}
|
||||||
|
|
||||||
NSRect r = NSMakeRect(0, 0, w->width, w->height);
|
NSRect r = NSMakeRect(0, 0, w->width, w->height);
|
||||||
NSUInteger style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable |
|
NSUInteger style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable |
|
||||||
NSWindowStyleMaskMiniaturizable;
|
NSWindowStyleMaskMiniaturizable;
|
||||||
@@ -2098,6 +2106,7 @@ struct webview_priv
|
|||||||
setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||||
w->priv.webview.frameLoadDelegate = w->priv.delegate;
|
w->priv.webview.frameLoadDelegate = w->priv.delegate;
|
||||||
w->priv.webview.UIDelegate = w->priv.delegate;
|
w->priv.webview.UIDelegate = w->priv.delegate;
|
||||||
|
[w->priv.webview.scrollView setZoomScale:1.0/scale animated:NO];
|
||||||
[[w->priv.window contentView] addSubview:w->priv.webview];
|
[[w->priv.window contentView] addSubview:w->priv.webview];
|
||||||
[w->priv.window orderFrontRegardless];
|
[w->priv.window orderFrontRegardless];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user