~vnva


#220 [BUG] Cant calculate window size on start 8 months ago

Comment by ~vnva on ~scoopta/wofi

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.

#220 [BUG] Cant calculate window size on start 8 months ago

Comment by ~vnva on ~scoopta/wofi

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.

#220 [BUG] Cant calculate window size on start 8 months ago

Comment by ~vnva on ~scoopta/wofi

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;
}

#220 [BUG] Cant calculate window size on start 8 months ago

Comment by ~vnva on ~scoopta/wofi

config

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

#220 [BUG] Cant calculate window size on start 8 months ago

Comment by ~vnva on ~scoopta/wofi

#220 [BUG] Cant calculate window size on start 8 months ago

Ticket created by ~vnva on ~scoopta/wofi

Log on start:

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

https://youtu.be/O3ypYvW8PHI