Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

First oj-list-item in oj-list-view displays without class "oj-listview-item-layout"

Philip SommerJul 23 2020 — edited Jul 28 2020

JET Version: 9.0.0

The issue: Last item is missaligned, because it is missing the class mentioned in the title. Adding the class in the debugger fixes the layout.

ui.jpg

*edit: The different "Resize" text is coincidental and does not cause the issue.

The View:

<oj-list-view id="historyList" aria-label="history list" data="[[ganttModel.historyProvider]]">

<template slot="itemTemplate" data-oj-as="item">

\<li>

  \<oj-list-item-layout>

    \<img slot="leading" :src="\[\[item.data.image\]\]" alt="Status Icon" width="24" height="24" />

    \<span class="oj-typography-body-sm oj-text-color-primary">

      \<oj-bind-text value="\[\[item.data.title\]\]">\</oj-bind-text>

    \</span>

    \<span slot="secondary" class="oj-typography-body-sm oj-text-color-secondary">

      \<oj-bind-text value="\[\[item.data.description\]\]">\</oj-bind-text>

    \</span>

  \</oj-list-item-layout>

\</li>

</template>

</oj-list-view>

The ViewModel/Code:

const observableHistory = ko.observableArray();

self.historyProvider = new ArrayDataProvider(observableHistory);

The value of obervableHistory during runtime:

observable.jpg

The observable is filled during runtime. Anyone got any idea what might cause this?

Kind regards,

Philip

This post has been answered by John JB Brock-Oracle on Jul 23 2020
Jump to Answer
Comments
Post Details
Added on Jul 23 2020
11 comments
442 views