~scoopta/wofi#220: 
[BUG] Cant calculate window size on start

Log on start:

Gtk-CRITICAL **: 01:38:07.571: gtk_widget_set_size_request: assertion 'height >= -1' failed

https://youtu.be/O3ypYvW8PHI

Status
REPORTED
Submitter
~vnva
Assigned to
No-one
Submitted
8 months ago
Updated
8 months ago
Labels
No labels applied.

~scoopta 8 months ago

what are your launch/config options?

~vnva 8 months ago*

config

allow_images=true
image_size=24
matchind=fuzzy
prompt=Search
normal_window=true

~vnva 8 months ago

style.css

* {
  background: transparent;
  font-family: 'Roboto';
  font-size: 14px;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
}

#window {
  background: rgba(0,0,0,.8);
  border-radius: 5px;
}

#outer-box {
  padding: 20px;
}

#input {
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px 5px;
  border: 1px solid #262626;
}

#input > image {
  padding: 0 10px;
}

#input:focus {
  border: 0.5px solid #6366f1;
}

#img {
  margin-right: 10px;
}

#entry {
  padding: 10px;
  margin-bottom: 5px;
  border-radius:5px;
}

#entry > image {
 background: red;
}

#entry:selected {
  background: #6366f1;
}

#expander-box {
  /* background: gray; */
  padding: 5px;
  margin: 10px;
  border-radius: 5px;
}

#expander-box #entry {
  /* background: blue; */
  margin-bottom: 5px;
  border-radius: 5px;
  padding: 5px 10px;
}

#expander-box #entry:last-child {
  margin-bottom: 0;
}

~vnva 8 months ago

The error appears to be caused by this line in the styles.

#input {
  padding: 10px 5px;
}

But even after the error disappeared, the problem remained, when opening the window jumps, this can be reproduced even if launched without configuration.

~vnva 8 months ago

I use Hyprland, tried to launch with normal_window=false, tried different Hyprland rules for launching with normal_window=true, the result is the same.

Register here or Log in to comment, or comment via email.