Bug 284459 - web slice widget won't accept geometry
Summary: web slice widget won't accept geometry
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-webslice (show other bugs)
Version: 4.7.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2011-10-19 12:31 UTC by Todd
Modified: 2018-06-08 19:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todd 2011-10-19 12:31:06 UTC
Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

With the web slice widget, I can set pages based on elements correctly, but it will not accept geometries.  The geometry never takes and is always reset when I re-open the configuration.  This happens either when selecting "body" or having a cleared text entry field.

Reproducible: Always

Steps to Reproduce:
1. Create a web slice widget
2. Select the "body" element
3. Input a geometry
4. Press "Ok"
5. Open the configuration again
6. Hit the clear button in the element list
7. Input a geometry
8. Press "Ok"
9. Open the configuration again

Actual Results:  
After 4, and 8 nothing happens.  After 5 the geometry has been reset to the dimensions of the page.  After 9 the geometry has been reset to 0,0,0,0.

Expected Results:  
After 4 and/or 8 the geometry you entered is displayed.  After 5 and/or 9 the geometry you set has been preserved.

This is a problem just on the default kde.org web page, but also happens for other pages.
Comment 1 Anne-Marie Mahfouf 2011-12-03 08:48:09 UTC
Confirmed on KDE 4.7.3
Comment 2 Gregor Tätzner 2011-12-17 20:36:45 UTC
Actually, the behaviour described in comment 0 is intended. From the infopage:

"Specify the URL of the webpage in the URL field.In the Element to Show field, fill in a CSS identifier (for example #mybox for elements with the id "mybox"). This is the preferred method as it works best with layout changes on the webpage.
Alternatively, you can specify a rectangle on the webpage to use as slice. Use "x,y,width,height" in pixels, for example "100,80,300,360". This method is a fallback for webpages that do not provide enough semantic markup for the above mechanism.
If both methods (element and geometry) are used, the element will take precedence."

So you cant use geometry when you set a element. I think the geometry field should be disabled when the element is not empty.
Comment 3 Anne-Marie Mahfouf 2011-12-18 07:39:18 UTC
What we tried is with no elementset to use geometry. Geometry fails: the slice does not show the geometrical area and the coordinates are not kept, all this without an element specified.
Comment 4 Gregor Tätzner 2011-12-19 12:05:51 UTC
Oh yes, I can confirm that. 

Nevertheless I created a small patch for that usability issue.
https://git.reviewboard.kde.org/r/103468/
Comment 5 Nate Graham 2018-06-08 19:42:14 UTC
Hello!

This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug is already resolved in Plasma 5.

Accordingly, we hope you understand why we must close this bug report. If the issue described  here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham