# Event Reference Editor not remembering column spacing

**URL:** <https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917>\
**Category:** Beta Testing\
**Created:** [August 2, 2023, 1:42pm UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917 "2023-08-02T13:42:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [August 2, 2023, 1:42pm UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/1 "2023-08-02T13:42:07Z")

</div>

Under the Source Citations tab in the Event Reference Editor, the column spacing keeps reverting back to default. Remembers spacing in under the Attributes tab. So far this is the only place I see this happening.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 2, 2023, 1:44pm UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/2 "2023-08-02T13:44:58Z")

</div>

This functionality was probably written before the persistent column widths PR was merged. I’ll fix it.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 2, 2023, 4:30pm UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/3 "2023-08-02T16:30:55Z")

</div>

The event reference editor has two “Source Citations” tabs. When you exit the editor it writes the column widths back to a configuration file. The problem is that the “Reference information” tab is written first and then overwritten by the “Shared information” tab.

A further problem is that if you invoked the event reference editor from the person editor, it also has a “Source Citations” tab and will write its column with back on exit.

This is not unique to the “Source Citations” tab. It also happens with the “Attributes”, “Notes” and other tabs.

I’m not quite sure what to do about this.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 2, 2023, 4:35pm UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/4 "2023-08-02T16:35:02Z")

</div>

> [@Nick-Hall](#):
>
> This functionality was probably written before the persistent column widths PR was merged. I’ll fix it.

> **From:** Nick Hall [notifications@github.com](mailto:notifications@github.com)  
> **Cc:** Push [push@noreply.github.com](mailto:push@noreply.github.com)  
> **Sent:** Wednesday, August 2, 2023 at 10:31:08 AM CDT  
> **Subject:** Re: [gramps-project/gramps] Set default column size in list views (PR #[1487](https://github.com/gramps-project/gramps/pull/1487))  
> [ea89bb9](https://github.com/gramps-project/gramps/commit/ea89bb9a1c98918389b72a2060f719f0136ab55f) Set default column size in list views

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 2, 2023, 4:36pm UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/5 "2023-08-02T16:36:38Z")

</div>

@emyoulation That commit is related to views rather than editors.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 4, 2023, 12:50am UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/6 "2023-08-04T00:50:36Z")

</div>

> [@Nick-Hall](#):
>
> I’m not quite sure what to do about this.

Report filed:  
[0012945](https://gramps-project.org/bugs/view.php?id=12945): tabs in the Event Reference Editor revert the column spacing

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [August 4, 2023, 8:17am UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/7 "2023-08-04T08:17:44Z")

</div>

We could add a suffix to the \_name depending on the context.

---

<div class="post-metadata">

**Author:** ![cdhorn](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@cdhorn](https://gramps.discourse.group/u/cdhorn)\
**Post date:** [August 7, 2023, 3:16am UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/8 "2023-08-07T03:16:29Z")

</div>

@Nick-Hall I have a fix for this that is pretty simple that adds support to override the class name in get\_config\_name(). Tested and worked fine for the event ref editor.

Do we want to allow users to customize spacing for every embedded list in every editor separately?

If so are you okay with me no longer using the class names at all and follow a convention like “event\_ref\_editor\_note\_tab” and “event\_ref\_editor\_ref\_note\_tab” across everything? Or just do the bare minimum to resolve the issue and don’t reswizzle all the others?

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 7, 2023, 11:37am UTC](https://gramps.discourse.group/t/event-reference-editor-not-remembering-column-spacing/3917/9 "2023-08-07T11:37:03Z")

</div>

Bug [#12945](https://gramps-project.org/bugs/view.php?id=12945) is assigned to me. Please work on unassigned bug reports in the future so that we don’t duplicate our efforts.

I have also been looking at this and my conclusion was the same. Each tab needs its own configuration setting as Serge suggested.

@cdhorn OK. I have now assigned it to you.

Fix committed 20Aug2023 by CDHorn to [gramps maintenance/gramps52 f63b9b4f](https://github.com/gramps-project/gramps/commit/f63b9b4f93ae552d5d9d76bd418c1372f1d7f2fd)
