-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buttons out of view in build-in UI #123
Comments
Hi @Marc022! First, apologies for not only a slow reply but also the lack of a reply in the first place to at least acknowledge the issue. I'm so busy right now, and I'm not a WinForms expert, so this is difficult for me. I'm learning slowly, though, and I am hoping this is fixed in |
Hello! I've had this issue with the latest version of NetSparkle as of today ... I rebooted the virtual machine, and now a tiny fraction of the buttons does show up. I think that this is an anchor issue. That virtual machine is running Windows 7, and DPI settings are set to defaults (96 DPI and 100% scaling). Also note the weird gap between the end of the text (black box ends where text ends) and "is now available" ... why would that be? (Also same issue as in: #44) |
Thanks for the report. Which UI? Is this WinForms .NET Core or .NET Framework? Or WPF? If someone can make a reproducible sample for this DPI issue, I would love to have it. I can't repro this issue, which makes it very hard to fix. That table row on the form has a height of RE: The whitespace -- does your app cast program name or version # have a bunch of whitespace or something? (You can anonymize and paste the app cast here; that might help.) This is the code that generates that text: lblInfoText.Text = string.Format("{0} {3} is now available (you have {1}). Would you like to {2} it now?", item.AppName, versionString, downloadInstallText, item.Version); |
This is the .NET Framework UI version ( I did nothing special apart from merely importing and using NetSparkle, except maybe that I'm using a custom icon (can't get it to disregard the "icon" parameter, so I had to specify my app's icon). It's almost certainly not that, since the buttons used to work alright even with the custom icon. I will try to reinstall Windows 7 and VS2013 on a clean VM later today to see if I can do anything specific to "trigger" this. As for the whitespace, you're right! It's indeed the issue. Looking in the generated appcast, I see that it automatically inserted a bunch of spaces after the version!
|
Thanks for the additional info. Definitely not the icon. Should be able to avoid the icon param though: NetSparkle/src/NetSparkle.UI.WinForms.NetFramework/UIFactory.cs Lines 20 to 25 in a6bb8e8
Whitespace: Bah, probably need to be trimming titles and stuff. ( NetSparkle/src/NetSparkle.Tools.AppCastGenerator/Program.cs Lines 231 to 248 in a6bb8e8
|
The trimming issues with whitespace have been resolved in the most recent version of the AppCastGenerator tool (2.0.3+). |
Do you still have the invisible button problem? |
I haven't been able to replicate it. I'm waiting on @WaseemAlkurdi to reply to see if they can still replicate it. |
Could it be that the |
I'll try out the new version with my dodgy user and report back |
I am trying to make an updater with the build-in UI WinForms/NetCore but some buttons are not showing properly on the window. I know that this issue has already been asked before but there was no answer so I was wondering if someone found what the problem is. By pulling the sample project, I get the same thing.
The text was updated successfully, but these errors were encountered: