 Hello and welcome to the very first episode of Nicolo actually solves a bug in a time frame that is widely regarded as acceptable. That is actually like 10 to 15 minutes. So that was like super fast. So what was the bug? And actually the first time I saw the bug, I saw the bug report because somebody did a bug report. I thought no way, no way that this bug actually exists because it was about the floating panel. And the fact is floating panel has been out there for months, like months. And I was pretty sure that I had fixed all of the floating panel bugs and I didn't. This in particular was a pretty big bug in my opinion. And the fact that this went unnoticed for this long just baffles me like I thought I would have noticed. So what is the bug? The bug report simply said if you make a floating panel and you make that does not extend to width and you insert an applet inside of it, then this applet will actually overflow outside the floating panel. And my reaction was like, no, it doesn't. I mean, I would have noticed. I surely would have noticed if that was the case. So I actually thought, no, this bug reported must have messed up something. And I left a comment asking for more information regarding a screenshot of the panel in edit mode because I thought probably it messed up or they messed up the sizing of the panel whilst in edit mode. And what they actually replied with a screenshot of edit mode and everything was correct. So I thought, okay, maybe this is my fault. And I actually tried out and I saw that I could indeed reproduce the bug. So today, let's actually see the bug in the first place so we can add an empty panel. Then as we said, we have to make it floating like this. We center on the left and we make it very small like this. And then we add a widget inside of it like the tray system tray. Boom. Of course, since I'm recording the system tray is for some reason invisible. What's up that? Like the whole panel is broken. Everything is broke. What is this? Okay, so luckily, I took a screenshot of the bug. So we can just look at the screenshot without having to reproduce it. I don't know. I don't know what's up with my panels today. Okay, so this is the merge request that fixes it. And this is how it looks. You can see that the clock is overflowing outside of the floating panel. And that's not good. It shouldn't. So what's going on? Luckily, the reason turned out to be simple enough. So shouldn't even take much to explain it. So, you know, I actually fixed the whole thing in 10 minutes. So it was very easy to troubleshoot. So what is going on? The fact is that in theory, the panel is the right size. Like I am leaving enough space in theory. Imagine that the screen actually ends here. I'm leaving enough space to actually draw the clock without the clock exiting the screen. However, that was okay if you had a non-floating panel. But if you do have a floating panel, then the width of the panel shouldn't be just enough so that it doesn't overflow the screen. It should be just enough so that it doesn't overflow the panel, which is a different thing. Now, this, why is this? This is because if you actually go ahead and draw where the window is for this panel, then you will see that this part on the right and this part on the bottom are actually part of the window of the panel. This is because I make the panel window larger so that I can detect mouse input and redirect it inside of the panel that you see. And then I add inside of that window margins on the bottom and on the right. This is the case for a panel that is right aligned. Obviously. So where is the issue? The issue is that I never, when doing that, I never updated the code that decides how wide should the panel be. So when the panel does the math to understand how wide it should be, it just thinks that it should be enough to, you know, feel to stay in the window of the panel. And as I said, the window of the panel is the whole thing also counting this part on the right. So the issue was there really. And how do I fix that? It's very easy. So let's see the merger quest. Okay, so content length is the length of the content inside of the panel. And here we are choosing how wide should the window for the panel be. And previously it just said it does some math to check that it's not too big, not too small, this kind of things. But really the important thing is that the size of the panel, the target size should be in function of the size of the content. And that's it. But as I said, when you do have a floating panel, I actually add some extra margins on the bottom and on the right and on the left and on top depends on where the panel is. So this shouldn't be true anymore. Like I actually want my window to be slightly larger compared to that. So I simply did the target size now is in function of the content length plus the floating padding, which is how much padding I add to the left and to the right. In this case, it's a vertical panel. You don't see it, but it's a vertical panel. So I add the top floating padding and the bottom floating padding. In this case, instead it's horizontal. So instead of content length, I have content length plus the left floating padding plus the right floating padding. And that is very much it. Now that I explained to you this thing, this is very much our rubber debugging type of things. I do realize that I might have done a slight mistake. Actually, let's take this case for the horizontal panel as an example. Let's say that I have this panel right aligned. So it's on the right time. This is my right. This is your right. So let's say that it's on the right here. Then I actually only add the right floating padding. So in theory, if it's on the center, I add both to the left and right. So I probably want both. If it's on the left, I only want the left one. If it's on the right, I only want the right one. But honestly, this is just a few pixels and worst case scenario, the panel ends up being slightly too big. That's probably not an issue. That is totally something I want to regret in the future. So I think it's fine if I leave it like this. I will think about it as the video ends, but you get the point. The solution was just to make the whole floating panel window bigger enough so I can draw the floating padding to the left and to the right without the content overflowing. That was it. It took 10 minutes. I felt kind of dumb because I probably should have noticed. I probably should have noticed, but thanks a lot to the person that actually noticed and opened up a bug report and I hope the year happy that I fix it so fast. So thanks everybody for following just as a quick message. As always, the fact that I was the bug fixing staff just when the bug reporter opened the bug and I could see it and I could review it immediately and fix it immediately is only thanks to the fact that I do receive some donations from you and some ad revenue from the channel. And that is not quite enough yet to make this work as a job, but it's slowly getting there. So I'm currently on Rasmus in Sweden and if you want to help me out actually leave here, then donations are super appreciated and I'm actually receiving a lot lately. So thank you all so much and see you tomorrow with yet another video. Bye!