<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Minimum window size obscures Context menu]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2066&amp;type=atom" />
	<updated>2022-12-04T15:19:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2066</id>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8769#p8769" />
			<content type="html"><![CDATA[<p>I understand, thank you for your assistance. If I am able to figure out the issue, I&#039;ll post the findings here.</p>]]></content>
			<author>
				<name><![CDATA[mmorsi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2352</uri>
			</author>
			<updated>2022-12-04T15:19:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8769#p8769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8768#p8768" />
			<content type="html"><![CDATA[<p>I&#039;ve tried installing Fedora via VMWare Workstation and Oracle VirtualBox, but it doesn&#039;t work stable, and restarts halfway through the Unity installation, and freezes when using the terminal.<br />I&#039;ve tried using Fedora Media Writer, but it doesn&#039;t want to use the full USB disk size (512GB), and only uses 2GB, which is not enough to install Unity.<br />So unfortunately I can&#039;t test the asset on Fedora.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-12-04T12:56:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8768#p8768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8765#p8765" />
			<content type="html"><![CDATA[<p>I&#039;ll try installing Fedora + Unity via VMWare this weekend.<br />I think it will be very entertaining and painful, because:<br />1. My experience with Linux is close to zero.<br />2. Fedora is not on Unity&#039;s required systems list.<br />3. I googled a bit about it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-12-02T21:36:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8765#p8765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8764#p8764" />
			<content type="html"><![CDATA[<p>Interestingly, it doesn&#039;t happen for all windows. See the hierarchy vs inspector title bars for example</p>]]></content>
			<author>
				<name><![CDATA[mmorsi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2352</uri>
			</author>
			<updated>2022-12-02T18:57:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8764#p8764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8763#p8763" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>I just tested the asset in Ubuntu and there is no such problem on my side.<br />Screenshot attached.</p><p>Which Linux are you using and which version of the editor?<br />Are you using any special system settings, such as increasing the font size?</p></blockquote></div><p>Hi Alex, thanks for the quick reply. I am running Fedora 35 and Unity 2022.1.5f1. My desktop is a stock gnome installation from the Fedora repos with no settings or other changes.</p><p>There was a mention of a <a href="https://forum.unity.com/threads/limiting-application-window-size.787961/#post-5246285">minimum window size</a> by unity in 2019, but it&#039;s unclear what that applies to and I can&#039;t find anything else pertaining to it elsewhere online.</p>]]></content>
			<author>
				<name><![CDATA[mmorsi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2352</uri>
			</author>
			<updated>2022-12-02T18:47:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8763#p8763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8762#p8762" />
			<content type="html"><![CDATA[<p>Hello.</p><p>I just tested the asset in Ubuntu and there is no such problem on my side.<br />Screenshot attached.</p><p>Which Linux are you using and which version of the editor?<br />Are you using any special system settings, such as increasing the font size?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-12-02T17:35:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8762#p8762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8761#p8761" />
			<content type="html"><![CDATA[<p>This issue also affects other windows, particularily popup window titles (and perhaps others).</p><p><span class="postimg"><img src="https://i.ibb.co/4RMPrBM/Screenshot-from-2022-12-02-10-32-56.png" alt="https://i.ibb.co/4RMPrBM/Screenshot-from-2022-12-02-10-32-56.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[mmorsi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2352</uri>
			</author>
			<updated>2022-12-02T15:35:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8761#p8761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Minimum window size obscures Context menu]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8760#p8760" />
			<content type="html"><![CDATA[<p>Greetings, thanks for this great plugin, I just bought it via the Unity asset store.</p><p>Most everything works 100% but I&#039;m noticing an issue with the context menu where the popups are larger than they should be.</p><p><span class="postimg"><img src="https://i.ibb.co/bJbbswX/Screenshot-from-2022-12-02-09-46-44.png" alt="https://i.ibb.co/bJbbswX/Screenshot-from-2022-12-02-09-46-44.png" /></span></p><p>After investigating I discovered that this is because something is enforcing a <strong>&#039;minimum window size&#039;</strong>, ensuring that Unity&#039;s windows cannot be shrunk beyond a certain level. Since the Context Menu windows are smaller than this, the minimum is enforced and they do not look good.</p><p>I know this because I tested scaling different Unity windows down and none can go smaller than the rendered panels (see the Inspector window in the second screenshot) . I should note that I am using Unity on Linux (I have not tested this elsewhere yet), perhaps it&#039;s an operating system issue, but that being said, I am able to minimize other application windows to be smaller than Unity&#039;s.</p><p>Perhaps Unity is enforcing the minimum window size on Linux or similar, but a workaround is to edit the Context Menu layout logic, particularly:</p><p>The <strong>Prepare</strong> method in <strong>Assets/Plugins/Infinity Code/Ultimate Editor Enhancer/Scripts/Editor/Context Menu/EditorMenu.cs</strong> (currently line 180 of that file).</p><p>To change &#039;flipHorizontal&#039; and &#039;flipVertical&#039; to true. After the change, the logic should look like:</p><div class="codebox"><pre><code>          private static void Prepare(Vector2 position)
          {   
              Vector2 offset = Vector2.zero;
~             bool flipHorizontal = true;
~             bool flipVertical = true;</code></pre></div><p>This will change the order of the Context Menu windows such that while they still are larger than they should be, they do not overlap (see attached screenshot).</p><p>Thanks in advance for investigating this issue and again for the great plugin!</p>]]></content>
			<author>
				<name><![CDATA[mmorsi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2352</uri>
			</author>
			<updated>2022-12-02T15:09:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8760#p8760</id>
		</entry>
</feed>
